[MPlayer-cvslog] r35059 - trunk/configure
cehoyos
subversion at mplayerhq.hu
Sun Aug 5 18:51:44 CEST 2012
Author: cehoyos
Date: Sun Aug 5 18:51:43 2012
New Revision: 35059
Log:
Try to fix -lm handling in configure.
Static linking for some libraries was broken because -lm
was not at the end of the linking options.
This may have been a regression.
Modified:
trunk/configure
Modified: trunk/configure
==============================================================================
--- trunk/configure Sun Aug 5 01:00:58 2012 (r35058)
+++ trunk/configure Sun Aug 5 18:51:43 2012 (r35059)
@@ -72,9 +72,9 @@ compile_check() {
echo >> "$TMPLOG"
cat "$source" >> "$TMPLOG"
echo >> "$TMPLOG"
- echo "$_cc $WARNFLAGS $WARN_CFLAGS $CFLAGS $source $extra_cflags $ld_static $extra_ldflags $libs_mplayer $libs_mencoder -o $TMPEXE $@" >> "$TMPLOG"
+ echo "$_cc $WARNFLAGS $WARN_CFLAGS $CFLAGS $source $extra_cflags $ld_static $extra_ldflags $libs_mplayer $libs_mencoder -lm -o $TMPEXE $@" >> "$TMPLOG"
rm -f "$TMPEXE"
- $_cc $WARNFLAGS $WARN_CFLAGS $CFLAGS "$source" $extra_cflags $ld_static $extra_ldflags $libs_mplayer $libs_mencoder -o "$TMPEXE" "$@" >> "$TMPLOG" 2>&1
+ $_cc $WARNFLAGS $WARN_CFLAGS $CFLAGS "$source" $extra_cflags $ld_static $extra_ldflags $libs_mplayer $libs_mencoder -lm -o "$TMPEXE" "$@" >> "$TMPLOG" 2>&1
TMPRES="$?"
echo >> "$TMPLOG"
echo >> "$TMPLOG"
@@ -1559,7 +1559,6 @@ else # if test -z "$_target"
fi
extra_cflags="-I. -Iffmpeg $extra_cflags"
-extra_ldflags="-lm $extra_ldflags"
_timer=timer-linux.c
_getch=getch2.c
@@ -7800,6 +7799,8 @@ else
fi
echores "$_dvdnav"
+extra_ldflags="$extra_ldflags -lm"
+
# DO NOT ADD ANY TESTS THAT USE LINKER FLAGS HERE (like cc_check).
# Read dvdnav comment above.
More information about the MPlayer-cvslog
mailing list