summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-01-20 22:29:49 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-01-20 22:29:49 +0000
commitefa25887b869b3d5c771c7457044a4e333ae9bc1 (patch)
treea2227b0fc5d04e7e9cdc58526af1035ee267e4ef /configure
parent347f8a8a14e3fb736ea6f42c7a0da1a0472f947f (diff)
downloadskalibs-efa25887b869b3d5c771c7457044a4e333ae9bc1.tar.xz
Put auto compiler flags into CPPFLAGS. They're useless for linking.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure b/configure
index ac05bab..5655761 100755
--- a/configure
+++ b/configure
@@ -320,13 +320,13 @@ echo "Checking target system type..."
test -n "$target" || target=$($CC_AUTO -dumpmachine 2>/dev/null) || target=unknown
echo " ... $target"
-tryflag CFLAGS_AUTO -std=c99
-tryflag CFLAGS_AUTO -fomit-frame-pointer
-tryflag CFLAGS_AUTO -fno-exceptions
-tryflag CFLAGS_AUTO -fno-unwind-tables
-tryflag CFLAGS_AUTO -fno-asynchronous-unwind-tables
-tryflag CFLAGS_AUTO -Wa,--noexecstack
-tryflag CFLAGS_AUTO -fno-stack-protector
+tryflag CPPFLAGS_AUTO -std=c99
+tryflag CPPFLAGS_AUTO -fomit-frame-pointer
+tryflag CPPFLAGS_AUTO -fno-exceptions
+tryflag CPPFLAGS_AUTO -fno-unwind-tables
+tryflag CPPFLAGS_AUTO -fno-asynchronous-unwind-tables
+tryflag CPPFLAGS_AUTO -Wa,--noexecstack
+tryflag CPPFLAGS_AUTO -fno-stack-protector
tryflag CPPFLAGS_AUTO -Werror=implicit-function-declaration
tryflag CPPFLAGS_AUTO -Werror=implicit-int
tryflag CPPFLAGS_AUTO -Werror=pointer-sign