]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
use --as-needed just on linux, since *bsd way is broken... (patch from Diego Pettenò...
authorlu_zero <lu_zero@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 22 Oct 2006 14:47:12 +0000 (14:47 +0000)
committerlu_zero <lu_zero@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 22 Oct 2006 14:47:12 +0000 (14:47 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6759 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

configure

index 12a6054b83e6bb162906a838525e25e41c48c354..8e360d93167f68a7dda21705fb705193e9a63021 100755 (executable)
--- 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