summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2006-10-22 14:47:12 +0000
committerLuca Barbato <lu_zero@gentoo.org>2006-10-22 14:47:12 +0000
commitb92f5a6b31c8c08b08f84dccd89c1cfa98695444 (patch)
treedd9a57acda7acf7017eaeed1276d221ed427ff16 /configure
parent14f283d8497ca4261666c2fb4742c1db78c2f12e (diff)
use --as-needed just on linux, since *bsd way is broken... (patch from Diego Pettenò <flameeyes@gentoo.org>)
Originally committed as revision 6759 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 12a6054b83..8e360d9316 100755
--- a/configure
+++ b/configure
@@ -618,6 +618,7 @@ SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME)-$(LIBMAJOR)$(SLIBSUF)'
SHFLAGS='-shared -Wl,--out-implib=lib$(NAME).dll.a'
;;
Linux)
+check_ldflags '-Wl,--as-needed'
;;
IRIX*)
targetos=IRIX
@@ -1518,7 +1519,7 @@ check_cflags -Wredundant-decls
check_cflags -Winline
# add some linker flags
-check_ldflags '-Wl,--as-needed' '-Wl,-rpath-link,\$(BUILD_ROOT)/libavcodec' '-Wl,-rpath-link,\$(BUILD_ROOT)/libavformat' '-Wl,-rpath-link,\$(BUILD_ROOT)/libavutil'
+check_ldflags '-Wl,-rpath-link,\$(BUILD_ROOT)/libavcodec' '-Wl,-rpath-link,\$(BUILD_ROOT)/libavformat' '-Wl,-rpath-link,\$(BUILD_ROOT)/libavutil'
# not all compilers support -Os
test "$optimize" = "small" && check_cflags -Os