aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2007-09-18 18:01:07 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2007-09-18 18:01:07 +0000
commit13ef78254d12078c22c70bbe18113c98fa9f95d1 (patch)
tree98502f934613e0bd8ad7974dd4a34ed51f586b6f /configure
parentf84c35732587e0e5589b59f9c1ba2c366a1683bf (diff)
downloadffmpeg-13ef78254d12078c22c70bbe18113c98fa9f95d1.tar.gz
Properly check for -lm
Originally committed as revision 10528 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 3 insertions, 4 deletions
diff --git a/configure b/configure
index 4bb51f8fa5..32cec26bce 100755
--- a/configure
+++ b/configure
@@ -1078,7 +1078,6 @@ enabled_any x86_32 x86_64 && enable x86
enabled sparc64 && enable sparc
# OS specific
-osextralibs="-lm"
case $targetos in
beos|haiku|zeta)
PREFIX="$HOME/config"
@@ -1129,14 +1128,13 @@ case $targetos in
need_memalign="no"
;;
bsd/os)
- osextralibs="-lpoll -lgnugetopt -lm"
+ osextralibs="-lpoll -lgnugetopt"
strip="strip -d"
;;
darwin)
need_memalign="no"
SHFLAGS="-dynamiclib -Wl,-single_module -Wl,-install_name,\$(SHLIBDIR)/\$(SLIBNAME),-current_version,\$(SPPVERSION),-compatibility_version,\$(SPPVERSION) -Wl,-read_only_relocs,suppress"
VHOOKSHFLAGS='-dynamiclib -Wl,-single_module -flat_namespace -undefined suppress -Wl,-install_name,$(SHLIBDIR)/vhook/$@'
- osextralibs=""
strip="strip -x"
FFLDFLAGS="-Wl,-dynamic,-search_paths_first"
SLIBSUF=".dylib"
@@ -1172,7 +1170,6 @@ case $targetos in
VHOOKSHFLAGS="$VHOOKSHFLAGS -L\$(BUILD_ROOT)/libswscale"
VHOOKLIBS="$VHOOKLIBS -lswscale\$(BUILDSUF)"
fi
- osextralibs=""
EXESUF=".exe"
SLIBPREF="cyg"
SLIBSUF=".dll"
@@ -1195,6 +1192,8 @@ esac
add_extralibs $osextralibs
+check_ldflags -lm
+
if ! disabled logging ; then
enabled logging || logfile="$logging"
echo "# $0 $@" >$logfile