summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-22 10:06:30 +0000
committerpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-22 10:06:30 +0000
commitf9612a321b1b2a0e431eee5fa179e63b34e0afc6 (patch)
tree8a277dae66551e753b690dcc365c69045c6f6c0d /configure
parentc54ea775628ec0b995ca50692918c0fb17f238f7 (diff)
downloadmpv-f9612a321b1b2a0e431eee5fa179e63b34e0afc6.tar.bz2
mpv-f9612a321b1b2a0e431eee5fa179e63b34e0afc6.tar.xz
-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) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3066 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure20
1 files changed, 12 insertions, 8 deletions
diff --git a/configure b/configure
index f383f43d13..1659577ce4 100755
--- a/configure
+++ b/configure
@@ -970,7 +970,7 @@ EOF
_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 @@ EOF
_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 @@ echores "$_dl"
#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 @@ if test "$_dvdread" = yes ; then
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 @@ echores "$_iconv"
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 @@ else
_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'