summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-04-13 17:01:01 -0300
committerJames Almer <jamrial@gmail.com>2017-04-13 17:01:01 -0300
commit41b8b2ca286f4a4d21c2acaa52248ff33fa606c9 (patch)
treef056a1fb90aed98468d3b44f3e941f153e0fb3de /configure
parent1849d0caa52f6748f59c75ee0d29adde9cb3451b (diff)
parent404cb74793284aa03e2e1a7e911c980c4cba0e9e (diff)
Merge commit '404cb74793284aa03e2e1a7e911c980c4cba0e9e'
* commit '404cb74793284aa03e2e1a7e911c980c4cba0e9e': configure: Pass CFLAGS_HEADERS through the right CFLAGS filter Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure b/configure
index d13d60b96f..e8301c886e 100755
--- a/configure
+++ b/configure
@@ -828,6 +828,10 @@ add_cflags(){
append CFLAGS $($cflags_filter "$@")
}
+add_cflags_headers(){
+ append CFLAGS_HEADERS $($cflags_filter "$@")
+}
+
add_cxxflags(){
append CXXFLAGS $($cflags_filter "$@")
}
@@ -6128,7 +6132,7 @@ check_disable_warning -Wno-unused-const-variable
check_disable_warning_headers(){
warning_flag=-W${1#-Wno-}
- test_cflags $warning_flag && append cflags_headers $1
+ test_cflags $warning_flag && add_cflags_headers $1
}
check_disable_warning_headers -Wno-deprecated-declarations
@@ -6730,7 +6734,7 @@ TARGET_EXEC=$target_exec $target_exec_args
TARGET_PATH=$target_path
TARGET_SAMPLES=${target_samples:-\$(SAMPLES)}
CFLAGS-ffplay=${sdl2_cflags}
-CFLAGS_HEADERS=$cflags_headers
+CFLAGS_HEADERS=$CFLAGS_HEADERS
ZLIB=$($ldflags_filter -lz)
LIB_INSTALL_EXTRA_CMD=$LIB_INSTALL_EXTRA_CMD
EXTRALIBS=$extralibs