Skip to content

Commit 6f29532

Browse files
committed
Do not let external specification of CFLAGS stop us from adding
-fno-strict-aliasing.
1 parent 9fe0975 commit 6f29532

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

config/c-compiler.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Macros to detect C compiler features
2-
# $PostgreSQL: pgsql/config/c-compiler.m4,v 1.11 2003/11/29 19:51:17 pgsql Exp $
2+
# $PostgreSQL: pgsql/config/c-compiler.m4,v 1.12 2004/02/02 04:07:18 tgl Exp $
33

44

55
# PGAC_C_SIGNED
@@ -146,7 +146,7 @@ done
146146
CFLAGS=$pgac_save_CFLAGS
147147
])
148148
149-
if test "$ac_env_CFLAGS_set" != set; then
149+
if test x"$pgac_cv_prog_cc_no_strict_aliasing" != x""; then
150150
CFLAGS="$CFLAGS $pgac_cv_prog_cc_no_strict_aliasing"
151151
fi])# PGAC_PROG_CC_NO_STRICT_ALIASING
152152

configure

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2488,7 +2488,7 @@ fi
24882488
echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_no_strict_aliasing" >&5
24892489
echo "${ECHO_T}$pgac_cv_prog_cc_no_strict_aliasing" >&6
24902490

2491-
if test "$ac_env_CFLAGS_set" != set; then
2491+
if test x"$pgac_cv_prog_cc_no_strict_aliasing" != x""; then
24922492
CFLAGS="$CFLAGS $pgac_cv_prog_cc_no_strict_aliasing"
24932493
fi
24942494

@@ -2502,7 +2502,7 @@ echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
25022502

25032503
# We already have this in Makefile.win32, but configure needs it too
25042504
if test "$PORTNAME" = "win32"; then
2505-
CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2505+
CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32"
25062506
fi
25072507

25082508
# Check if the compiler still works with the template settings
@@ -12079,7 +12079,6 @@ esac
1207912079
case $host_os in mingw*)
1208012080
LIBOBJS="$LIBOBJS dirmod.$ac_objext"
1208112081
LIBOBJS="$LIBOBJS copydir.$ac_objext"
12082-
LIBOBJS="$LIBOBJS rand.$ac_objext"
1208312082
LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
1208412083
LIBOBJS="$LIBOBJS pipe.$ac_objext" ;;
1208512084
esac

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy