diff options
author | Mans Rullgard <mans@mansr.com> | 2012-07-20 13:48:13 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-07-21 17:18:55 +0100 |
commit | 6c3fa06a85ea50a91d373164e77299f339bf7616 (patch) | |
tree | 22bbac5ae1f19c6d6318e73837beccc940885739 /configure | |
parent | 68485d1f32ae92c15047c567657b33a71bbed1a3 (diff) | |
download | ffmpeg-6c3fa06a85ea50a91d373164e77299f339bf7616.tar.gz |
configure: add filtering of host cflags/ldflags
This is in preparation for supporting host compilers with
non-standard flags.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 "$@" <<EOF && append host_cflags "$@" int x; EOF @@ -1717,6 +1726,8 @@ CC_O='-o $@' host_cflags='-D_ISOC99_SOURCE -D_XOPEN_SOURCE=600 -O3 -g' host_libs='-lm' +host_cflags_filter=echo +host_ldflags_filter=echo target_path='$(CURDIR)' |