changeset 3065:d1a4e18e803d

-rdynamic is now enabled if (bsd) || (_xanim is yes) removed a few ${_ld_foo} since not needed (these variables are always always separated by spaces)
author pl
date Thu, 22 Nov 2001 10:06:30 +0000
parents 3c10aeb3f441
children 7eba9b3ac5a7
files configure
diffstat 1 files changed, 12 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Thu Nov 22 03:20:36 2001 +0000
+++ b/configure	Thu Nov 22 10:06:30 2001 +0000
@@ -970,7 +970,7 @@
 _kstat=no
 cc_check -lkstat && _kstat=yes
 if test "$_kstat" = yes ; then
-  _ld_arch="-lkstat ${_ld_arch}"
+  _ld_arch="-lkstat $_ld_arch"
 fi
 if test "$_kstat" = yes ; then
   _def_kstat="#define HAVE_LIBKSTAT 1"
@@ -989,7 +989,7 @@
 _posix4=no
 cc_check -lposix4 && _posix4=yes
 if test "$_posix4" = yes ; then
-  _ld_arch="-lposix4 ${_ld_arch}"
+  _ld_arch="-lposix4 $_ld_arch"
 fi
 echores "$_posix4"
 
@@ -1094,9 +1094,7 @@
 
 
 #echocheck "dynamic linking"
-_ld_dl_dynamic=''
-bsd && _ld_dl_dynamic='-rdynamic'
-# FIXME !! make this dynamic detection to work
+# FIXME !! make this dynamic detection to work and modify at the end (search _ld_dl_dynamic)
 # also gcc flags are different, but ld flags aren't (-Bdynamic/-Bstatic/-Bsymbolic)
 #cat > $TMPC << EOF
 #int main(void) { return 0; }
@@ -1854,7 +1852,7 @@
 elif test "$_css" = yes ; then
   _def_dvdread='#undef USE_DVDREAD'
   _def_css='#define HAVE_LIBCSS 1'
-  test "$_csslibdir" && _ld_css="-L${_csslibdir} ${_ld_css}"
+  test "$_csslibdir" && _ld_css="-L${_csslibdir} $_ld_css"
   echores "libcss"
 else
   _def_dvdread='#undef USE_DVDREAD'
@@ -2103,7 +2101,7 @@
 
 echocheck "FFmpeg codec"
 if test "$_libavcodec" = auto ; then
-  # Note: static link is preferred to dynamic link
+  # Note: static linking is preferred to dynamic linking
   _libavcodec=no
   test -d libavcodec && test -f libavcodec/Makefile && _libavcodec=yes
 fi
@@ -2358,7 +2356,13 @@
   _confcygwin="TARGET_CYGWIN = no"
 fi
 
-_ld_arch="${_ld_arch} $_ld_pthread $_ld_dl $_ld_dl_dynamic"
+# Dynamic linking flags 
+# (FIXME: 'echocheck "dynamic linking"' above and modify here accordingly)
+_ld_dl_dynamic=''
+bsd && _ld_dl_dynamic='-rdynamic'
+test "$_xanim" = yes && _ld_dl_dynamic='-rdynamic'
+
+_ld_arch="$_ld_arch $_ld_pthread $_ld_dl $_ld_dl_dynamic"
 bsdos && _ld_arch="$_ld_arch -ldvd"
 
 _def_debug='#undef MP_DEBUG'