From: Tom Lane Date: Mon, 2 Feb 2004 04:07:40 +0000 (+0000) Subject: Do not let external specification of CFLAGS stop us from adding X-Git-Tag: REL7_4_2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fce397ed12dd2dca6b2129a5654b3df33c10e0dd;p=thirdparty%2Fpostgresql.git Do not let external specification of CFLAGS stop us from adding -fno-strict-aliasing. --- diff --git a/config/c-compiler.m4 b/config/c-compiler.m4 index d5fdd2ff9e3..256830a881a 100644 --- a/config/c-compiler.m4 +++ b/config/c-compiler.m4 @@ -1,5 +1,5 @@ # Macros to detect C compiler features -# $Header: /cvsroot/pgsql/config/c-compiler.m4,v 1.10 2003/11/01 20:48:51 petere Exp $ +# $Header: /cvsroot/pgsql/config/c-compiler.m4,v 1.10.2.1 2004/02/02 04:07:40 tgl Exp $ # PGAC_C_SIGNED @@ -146,7 +146,7 @@ done CFLAGS=$pgac_save_CFLAGS ]) -if test "$ac_env_CFLAGS_set" != set; then +if test x"$pgac_cv_prog_cc_no_strict_aliasing" != x""; then CFLAGS="$CFLAGS $pgac_cv_prog_cc_no_strict_aliasing" fi])# PGAC_PROG_CC_NO_STRICT_ALIASING diff --git a/configure b/configure index 11861f9b7ec..b7f3d2bab6f 100755 --- a/configure +++ b/configure @@ -2471,7 +2471,7 @@ fi echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_no_strict_aliasing" >&5 echo "${ECHO_T}$pgac_cv_prog_cc_no_strict_aliasing" >&6 -if test "$ac_env_CFLAGS_set" != set; then +if test x"$pgac_cv_prog_cc_no_strict_aliasing" != x""; then CFLAGS="$CFLAGS $pgac_cv_prog_cc_no_strict_aliasing" fi