Update of /cvsroot/xine/xine-lib
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv15586

Modified Files:
        configure.ac 
Log Message:
Make -Wl,-z,defs an opt-in ldflag, if available. The $(xineplug_ldflags) 
variable can be injected in _LDFLAGS for the xine plugins, and already provides 
-avoid-version -module and -Wl,-z,defs if supported. Right now only wavpack 
plugin actually make use of this but that can be fixed as the Makefiles are 
edited.

Index: configure.ac
===================================================================
RCS file: /cvsroot/xine/xine-lib/configure.ac,v
retrieving revision 1.461
retrieving revision 1.462
diff -u -r1.461 -r1.462
--- configure.ac        19 Feb 2007 23:50:56 -0000      1.461
+++ configure.ac        21 Feb 2007 23:07:45 -0000      1.462
@@ -2605,17 +2605,16 @@
 AC_TRY_CFLAGS([-Wstrict-aliasing=2], [wsa="-Wstrict-aliasing=2"])
 CFLAGS="$CFLAGS $wsa"
 
-dnl disabled "-Wl,-z,defs": it breaks compilation for vidix drivers.
-dnl note: no, linking twice to libdha.a is not an acceptable solution.
-dnl case $host_or_hostalias in
-dnl      dnl FreeBSD (et al.) does not complete linking for shared objects 
when pthreads
-dnl      dnl are requested, as different implementations are present; to avoid 
problems
-dnl      dnl use -Wl,-z,defs only for those platform not behaving this way.
-dnl      *-freebsd*) ;;
-dnl      *)
-dnl    AC_TRY_LDFLAGS([-Wl,-z,defs], [LDFLAGS="$LDFLAGS -Wl,-z,defs"])
-dnl    ;;
-dnl esac
+case $host_or_hostalias in
+     dnl FreeBSD (et al.) does not complete linking for shared objects when 
pthreads
+     dnl are requested, as different implementations are present; to avoid 
problems
+     dnl use -Wl,-z,defs only for those platform not behaving this way.
+     *-freebsd*) ;;
+     *)
+       AC_TRY_LDFLAGS([-Wl,-z,defs], [NOUNDEF="-Wl,-z,defs"])
+       ;;
+esac
+AC_SUBST([NOUNDEF])
 
 dnl Common cflags for all platforms
 CFLAGS="-DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE 
\$(MULTIPASS_CFLAGS) $CFLAGS"


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xine-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-cvslog

Reply via email to