fix passing -D_FORTIFY_SOURCE to non-optimized builds
It doesn't actually do anything and upstream glibc headers complain
(Debian has a patch that removes the complaining).
Change-Id: If16b675e0ddfc2120e2043ec7e1fdf363b47bf22
diff --git a/aos/build/aos.gypi b/aos/build/aos.gypi
index f7c5f07..a061a66 100644
--- a/aos/build/aos.gypi
+++ b/aos/build/aos.gypi
@@ -137,7 +137,6 @@
'__STDC_FORMAT_MACROS',
'__STDC_CONSTANT_MACROS',
'__STDC_LIMIT_MACROS',
- '_FORTIFY_SOURCE=2',
],
'ldflags': [
'-pipe',
@@ -193,6 +192,7 @@
}, { # 'DEBUG=="no"'
'defines': [
'AOS_DEBUG=0',
+ '_FORTIFY_SOURCE=2',
],
'cflags': [
'-O3',