diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-10-31 22:48:59 +0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-11-02 01:05:20 +0400 |
commit | 23157d72b565e0228fec97f1eb059d4f8021a260 (patch) | |
tree | c4aa1020d2585fd9d23b9752f5be1efb78739868 | |
parent | d1c229cdbc07ef8eb703d68d1c5b509baee85245 (diff) |
configure: Split test_cflags function off from check_cflags
This is useful to test flags without directly adding them to CFLAGS.
-rwxr-xr-x | configure | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -779,14 +779,19 @@ int x; EOF } -check_cflags(){ - log check_cflags "$@" +test_cflags(){ + log test_cflags "$@" set -- $($cflags_filter "$@") - check_cc "$@" <<EOF && append CFLAGS "$@" + check_cc "$@" <<EOF int x; EOF } +check_cflags(){ + log check_cflags "$@" + test_cflags "$@" && add_cflags "$@" +} + test_ldflags(){ log test_ldflags "$@" check_ld "$@" <<EOF |