]> diplodocus.org Git - nmh/blobdiff - build_nmh
mhbuildsbr.c: Ensure temporary FILE closed regardless of success.
[nmh] / build_nmh
index 8056670..8e6ede6 100755 (executable)
--- a/build_nmh
+++ b/build_nmh
@@ -364,9 +364,9 @@ if [ -z "$CFLAGS" ]; then
   if cc -dM -E - </dev/null 2>&1 | grep __GNUC__ >/dev/null; then
     #### configure will supply -g -O2 with gcc, but only if CFLAGS
     #### isn't defined.
-    CFLAGS='-g -ansi -pedantic'
+    CFLAGS='-g -std=c99 -pedantic'
     if [ "$config_debug" = n ]; then
-      CFLAGS="$CFLAGS -O2"
+      CFLAGS="$CFLAGS -O2 -D_FORTIFY_SOURCE=2"
     else
       CFLAGS="$CFLAGS -O0"
     fi