[xiph-commits] r10086 - trunk/theora
conrad at svn.xiph.org
conrad at svn.xiph.org
Wed Sep 28 09:41:49 PDT 2005
Author: conrad
Date: 2005-09-28 09:41:47 -0700 (Wed, 28 Sep 2005)
New Revision: 10086
Modified:
trunk/theora/configure.ac
Log:
add check for GNU ld when using version script, was broken on Solaris for
non-GNU builds. Patch from Brian Cameron, closes ticket:712
Modified: trunk/theora/configure.ac
===================================================================
--- trunk/theora/configure.ac 2005-09-28 16:08:29 UTC (rev 10085)
+++ trunk/theora/configure.ac 2005-09-28 16:41:47 UTC (rev 10086)
@@ -104,14 +104,22 @@
CFLAGS="$CFLAGS $cflags_save"
LDFLAGS="$LDFLAGS $ldflags_save"
-dnl Set extra linker options
-case "$target_os" in
+# Test whenever ld supports -version-script
+AC_PROG_LD
+AC_PROG_LD_GNU
+if test "x$lt_cv_prog_gnu_ld" = "xyes"; then
+ SHLIB_VERSION_ARG="Wl,--version-script=Version_script"
+
+ dnl Set extra linker options
+ case "$target_os" in
linux* | solaris* )
SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"
;;
*)
;;
-esac
+ esac
+fi
+
AC_SUBST(SHLIB_VERSION_ARG)
dnl --------------------------------------------------
More information about the commits
mailing list