aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-04-25 12:03:19 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-04-25 12:24:39 +0200
commit031a7be33a0f0c80eac57c4191a6289eafcef067 (patch)
treee3133ccef4e8f3a39f3b02f5275501f464e88d8c
parent73e6d7f0ade7747110dab5afa61f52d9e49af613 (diff)
downloadvis-031a7be33a0f0c80eac57c4191a6289eafcef067.tar.gz
vis-031a7be33a0f0c80eac57c4191a6289eafcef067.tar.xz
build: add more default flags to $CFLAGS instead of $CFLAGS_AUTO
This way we make sure the flags are in place when building dependencies.
-rwxr-xr-xconfigure14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure b/configure
index 718d432..802a06e 100755
--- a/configure
+++ b/configure
@@ -212,19 +212,19 @@ Darwin) CFLAGS_STD="$CFLAGS_STD -D_DARWIN_C_SOURCE" ;;
AIX) CFLAGS_STD="$CFLAGS_STD -D_ALL_SOURCE" ;;
esac
-tryflag CFLAGS_AUTO -pipe
+tryflag CFLAGS -pipe
# Try flags to optimize binary size
-tryflag CFLAGS_AUTO -Os
-#tryflag CFLAGS_AUTO -ffunction-sections
-#tryflag CFLAGS_AUTO -fdata-sections
+tryflag CFLAGS -Os
+#tryflag CFLAGS -ffunction-sections
+#tryflag CFLAGS -fdata-sections
#tryldflag LDFLAGS_AUTO -Wl,--gc-sections
# Try hardening flags
-tryflag CFLAGS_AUTO -fPIE
+tryflag CFLAGS -fPIE
tryflag CFLAGS_AUTO -fstack-protector-all
-tryldflag LDFLAGS_AUTO -Wl,-z,now
-tryldflag LDFLAGS_AUTO -Wl,-z,relro
+tryldflag LDFLAGS -Wl,-z,now
+tryldflag LDFLAGS -Wl,-z,relro
#tryldflag LDFLAGS_AUTO -pie
printf "creating config.mk... "