X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/e45ba8b5562113b840aa0a7309936c7b7c62af72..aad7213c7ebca96dff5f141e0e26a165eba4e6b8:/build_nmh diff --git a/build_nmh b/build_nmh index 80566701..8e6ede65 100755 --- a/build_nmh +++ b/build_nmh @@ -364,9 +364,9 @@ if [ -z "$CFLAGS" ]; then if cc -dM -E - &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