From b92f5a6b31c8c08b08f84dccd89c1cfa98695444 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Sun, 22 Oct 2006 14:47:12 +0000 Subject: [PATCH] =?utf8?q?use=20--as-needed=20just=20on=20linux,=20since?= =?utf8?q?=20*bsd=20way=20is=20broken...=20(patch=20from=20Diego=20Petten?= =?utf8?q?=C3=B2=20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Originally committed as revision 6759 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 12a6054b8..8e360d931 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 -- 2.11.0