mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-05 14:26:17 +00:00
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
This commit is contained in:
parent
14f283d849
commit
b92f5a6b31
3
configure
vendored
3
configure
vendored
@ -618,6 +618,7 @@ SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME)-$(LIBMAJOR)$(SLIBSUF)'
|
|||||||
SHFLAGS='-shared -Wl,--out-implib=lib$(NAME).dll.a'
|
SHFLAGS='-shared -Wl,--out-implib=lib$(NAME).dll.a'
|
||||||
;;
|
;;
|
||||||
Linux)
|
Linux)
|
||||||
|
check_ldflags '-Wl,--as-needed'
|
||||||
;;
|
;;
|
||||||
IRIX*)
|
IRIX*)
|
||||||
targetos=IRIX
|
targetos=IRIX
|
||||||
@ -1518,7 +1519,7 @@ check_cflags -Wredundant-decls
|
|||||||
check_cflags -Winline
|
check_cflags -Winline
|
||||||
|
|
||||||
# add some linker flags
|
# 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
|
# not all compilers support -Os
|
||||||
test "$optimize" = "small" && check_cflags -Os
|
test "$optimize" = "small" && check_cflags -Os
|
||||||
|
Loading…
Reference in New Issue
Block a user