[x264-devel] Solaris 10 sparc patch to configure
greg.robinson at dsto.defence.gov.au
Fri Jan 23 05:27:12 CET 2009
I'm compiling x264-snapshot-20090122-2245 on solaris 10 sparc for
ffmpeg. I've found a few
compilation issues which I'd like to have included in the next snapshot
I've included a patch which addresses 3 out of the 4 issues. I'll
them here, and talk about the last one.
The 3 issues are:
1. The solaris linker does not gronk the -soname option to the gcc
It likes the -h option.
2. /bin/echo -n is broken on solaris. /usr/ucb/echo is the best option
3. Somewhere between x264-snapshot-20080409-2245 and
configure variable AS= is defined as empty. This patch just sets
And finally, the version.sh script does not work on my system as I do
git installed. And if I did, it would not work. Could I suggest a
for the detection of git and if not, then a grep for the variables
and X264_BUILD so they can be placed in config.h. Otherwise, they are
present and the build fails.
--- configure.orig Fri Jan 23 11:27:08 2009
+++ configure Fri Jan 23 11:26:47 2009
@@ -73,7 +73,15 @@
# check whether 'echo -n' works as expected, otherwise try printf
if [ "x`echo -n houba`" = xhouba ]
- ECHON="echo -n"
+# determine a good echo
+ case `uname -s` in
+ ECHON="/usr/ucb/echo -n"
+ ECHON="echo -n"
elif [ "x`printf houba`" = xhouba ]
@@ -311,7 +319,7 @@
CFLAGS="$CFLAGS -DARCH_$ARCH -DSYS_$SYS"
@@ -444,6 +452,10 @@
echo "SOSUFFIX=dylib" >> config.mak
echo "SONAME=libx264.$API.dylib" >> config.mak
echo 'SOFLAGS=-dynamiclib -Wl,-single_module
$(DESTDIR)$(libdir)/$(SONAME)' >> config.mak
+ elif [ "$SYS" = "SunOS" ]; then
+ echo "SOSUFFIX=so" >> config.mak
+ echo "SONAME=libx264.so.$API" >> config.mak
+ echo 'SOFLAGS=-Wl,-h,$(SONAME)' >> config.mak
echo "SOSUFFIX=so" >> config.mak
echo "SONAME=libx264.so.$API" >> config.mak
IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
More information about the x264-devel