From: Mans Rullgard Date: Fri, 20 Jul 2012 12:48:13 +0000 (+0100) Subject: configure: add filtering of host cflags/ldflags X-Git-Tag: n1.0~12^2~782 X-Git-Url: http://git.videolan.org/?p=ffmpeg.git;a=commitdiff_plain;h=6c3fa06a85ea50a91d373164e77299f339bf7616;ds=inline configure: add filtering of host cflags/ldflags This is in preparation for supporting host compilers with non-standard flags. Signed-off-by: Mans Rullgard --- diff --git a/configure b/configure index d7ce44a6e6..890621b8bb 100755 --- a/configure +++ b/configure @@ -604,6 +604,14 @@ add_extralibs(){ prepend extralibs $($ldflags_filter "$@") } +add_host_cflags(){ + append host_cflags $($host_cflags_filter "$@") +} + +add_host_ldflags(){ + append host_ldflags $($host_ldflags_filter "$@") +} + check_cmd(){ log "$@" "$@" >> $logfile 2>&1 @@ -878,6 +886,7 @@ check_host_cc(){ check_host_cflags(){ log check_host_cflags "$@" + set -- $($host_cflags_filter "$@") check_host_cc "$@" <