提交 b92f5a6b 编写于 作者: L Luca Barbato

use --as-needed just on linux, since *bsd way is broken... (patch from Diego...

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
上级 14f283d8
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册