[XviD-devel]
patch for configure.in (works around freebsd's broken ldconfig)
Michael Nottebrock
michaelnottebrock at gmx.net
Tue Aug 12 01:50:09 CEST 2003
I just learned the hard way that freebsd's ldconfig ignores everything that
doesn't look like filename.so.[0-9]... attached is a patch for configure.in
that creates a special case for *freebsd*, against the version in 0.9.2.
P.S.: It seems the list redirects mails with attachments to /dev/null. So here
is the patch inline and probably mangled.
--- configure.in Mon Jul 28 15:18:34 2003
+++ /home/lofi/configure.in Mon Aug 11 17:51:17 2003
@@ -264,10 +264,17 @@
SPECIFIC_LDFLAGS=""
SPECIFIC_CFLAGS=""
case "$target_os" in
- *bsd*|linux*|irix*|solaris*)
+ *openbsd*|*netbsd*|linux*|irix*|solaris*)
AC_MSG_RESULT([-Wl,-soname,libxvidcore.so -shared -lc -lm])
STATIC_LIB="libxvidcore.\$(STATIC_EXTENSION)"
SHARED_LIB="libxvidcore.\$(SHARED_EXTENSION).\$(API_MAJOR).\$(API_MINOR)"
+ SPECIFIC_LDFLAGS="-Wl,-soname,libxvidcore.\$(SHARED_EXTENSION).\$(API_MAJOR) -shared -lc -lm"
+ SPECIFIC_CFLAGS="-fPIC"
+ ;;
+ *freebsd*)
+ AC_MSG_RESULT([-Wl,-soname,libxvidcore.so -shared -lc -lm])
+ STATIC_LIB="libxvidcore.\$(STATIC_EXTENSION)"
+ SHARED_LIB="libxvidcore.\$(SHARED_EXTENSION).\$(API_MAJOR)"
SPECIFIC_LDFLAGS="-Wl,-soname,libxvidcore.\$(SHARED_EXTENSION).\$(API_MAJOR) -shared -lc -lm"
SPECIFIC_CFLAGS="-fPIC"
;;
--
,_, | Michael Nottebrock | lofi at freebsd.org
(/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org
\u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org
More information about the XviD-devel
mailing list