[FFmpeg-cvslog] configure: add filtering of linker flags
Mans Rullgard
git at videolan.org
Sun Jul 22 05:09:34 CEST 2012
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Fri Jul 20 03:06:49 2012 +0100| [64933b6c94dc6dd4c52078c2bf3863bdaf083cf2] | committer: Mans Rullgard
configure: add filtering of linker flags
This allows filtering of linker flags the same was as already
supported for CFLAGS. The filter must be initialised to 'echo'
early since it is invoked by --extra-ldflags.
Signed-off-by: Mans Rullgard <mans at mansr.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=64933b6c94dc6dd4c52078c2bf3863bdaf083cf2
---
configure | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 4907c75..9692921 100755
--- a/configure
+++ b/configure
@@ -597,11 +597,11 @@ add_asflags(){
}
add_ldflags(){
- append LDFLAGS "$@"
+ append LDFLAGS $($ldflags_filter "$@")
}
add_extralibs(){
- prepend extralibs "$@"
+ prepend extralibs $($ldflags_filter "$@")
}
check_cmd(){
@@ -657,6 +657,8 @@ check_ld(){
test "${f}" = "${f#-l}" && flags="$flags $f" || libs="$libs $f"
done
check_cc $($cflags_filter $flags) || return
+ flags=$($ldflags_filter $flags)
+ libs=$($ldflags_filter $libs)
check_cmd $ld $LDFLAGS $flags -o $TMPE $TMPO $libs $extralibs
}
@@ -1706,6 +1708,8 @@ LIB_INSTALL_EXTRA_CMD='$$(RANLIB) "$(LIBDIR)/$(LIBNAME)"'
SLIB_INSTALL_NAME='$(SLIBNAME_WITH_VERSION)'
SLIB_INSTALL_LINKS='$(SLIBNAME_WITH_MAJOR) $(SLIBNAME)'
+ldflags_filter=echo
+
AS_O='-o $@'
CC_O='-o $@'
More information about the ffmpeg-cvslog
mailing list