summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorSteven M. Schultz <sms@2bsd.com>2005-10-21 13:41:27 +0000
committerDiego Biurrun <diego@biurrun.de>2005-10-21 13:41:27 +0000
commitda186ae269b682e4fcc29aa4eb062fbe1015d453 (patch)
tree3c8fb5bbde8d86f49985e1415d46164f88d6f5ab /configure
parentf9c7872c66090c4df3d7b7b676c902baf94bd577 (diff)
Darwin install strips all global symbols, which gives undefined symbols
when linking against a stripped library. To avoid this, an installstrip variable is added that can be overridden on a per-OS basis. patch by Steven M. Schultz < sms == at -- 2BSD -- dot == COM > Originally committed as revision 4656 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index ca09e12161..eb133f147d 100755
--- a/configure
+++ b/configure
@@ -205,6 +205,7 @@ lshared="no"
optimize="yes"
debug="yes"
dostrip="yes"
+installstrip="-s"
extralibs="-lm"
simpleidct="yes"
bigendian="no"
@@ -333,6 +334,7 @@ SHFLAGS="-dynamiclib -Wl,-single_module,-undefined,dynamic_lookup"
extralibs=""
darwin="yes"
strip="strip -x"
+installstrip=""
LDFLAGS="-Wl,-dynamic,-search_paths_first"
SLIBSUF=".dylib"
FFSLDFLAGS=-Wl,-bind_at_load
@@ -1286,7 +1288,7 @@ echo "AR=$ar" >> config.mak
echo "RANLIB=$ranlib" >> config.mak
if test "$dostrip" = "yes" ; then
echo "STRIP=$strip" >> config.mak
-echo "INSTALLSTRIP=-s" >> config.mak
+echo "INSTALLSTRIP=$installstrip" >> config.mak
else
echo "STRIP=echo ignoring strip" >> config.mak
echo "INSTALLSTRIP=" >> config.mak