Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4f47538

Browse files
committed
Move CXX platform-specific stuff into template files.
1 parent712f69e commit4f47538

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

‎configure

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,6 +1916,10 @@ echo "$as_me: error: argument required for --with-CC option" >&2;}
19161916
fi;
19171917
19181918
1919+
# Set here so it can be over-ridden in the template file
1920+
GCC_CXXFLAGS="-O2"
1921+
VENDOR_CXXFLAGS=""
1922+
19191923
case$templatein
19201924
aix) pgac_cc_list="gcc xlc";;
19211925
irix) pgac_cc_list="cc";;# no gcc
@@ -4043,13 +4047,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
40434047
40444048
iftest"$ac_env_CXXFLAGS"!=set;then
40454049
iftest"$GXX" = yes;then
4046-
CXXFLAGS=-O2
4050+
CXXFLAGS="$GCC_CXXFLAGS"
40474051
else
4048-
case$templatein
4049-
osf)CXXFLAGS='-O4 -Olimit 2000' ;;
4050-
unixware)CXXFLAGS='-O' ;;
4051-
*)CXXFLAGS= ;;
4052-
esac
4052+
CXXFLAGS="$VENDOR_CXXFLAGS"
40534053
fi
40544054
fi
40554055
iftest"$enable_debug" = yes&&test"$ac_cv_prog_cxx_g" = yes;then

‎configure.in

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $Header: /cvsroot/pgsql/configure.in,v 1.186 2002/05/28 16:57:53 petere Exp $
2+
dnl $Header: /cvsroot/pgsql/configure.in,v 1.187 2002/07/07 20:28:24 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -243,6 +243,10 @@ AC_SUBST(enable_debug)
243243
# variable.
244244
PGAC_ARG_REQ(with, CC, [], [CC=$with_CC])
245245

246+
# Set here so it can be over-ridden in the template file
247+
GCC_CXXFLAGS="-O2"
248+
VENDOR_CXXFLAGS=""
249+
246250
case $template in
247251
aix) pgac_cc_list="gcc xlc";;
248252
irix) pgac_cc_list="cc";; # no gcc
@@ -593,13 +597,9 @@ PGAC_ARG_OPTARG(with, CXX, [ --with-CXX build C++ modules (libpq++
593597
AC_PROG_CXX
594598
if test "$ac_env_CXXFLAGS" != set; then
595599
if test "$GXX" = yes; then
596-
CXXFLAGS=-O2
600+
CXXFLAGS="$GCC_CXXFLAGS"
597601
else
598-
case $template in
599-
osf)CXXFLAGS='-O4 -Olimit 2000' ;;
600-
unixware)CXXFLAGS='-O' ;;
601-
*)CXXFLAGS= ;;
602-
esac
602+
CXXFLAGS="$VENDOR_CXXFLAGS"
603603
fi
604604
fi
605605
if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then

‎src/template/freebsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ CFLAGS='-pipe'
22

33
case $host_cpu in
44
alpha*) CFLAGS="$CFLAGS -O";;
5-
CXXFLAGS="$CXXFLAGS-O"
5+
GCC_CXXFLAGS="-O"
66
esac

‎src/template/osf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ else
66
CFLAGS='-O4 -Olimit 2000'
77
CCC=cxx
88
fi
9+
VENDOR_CXXFLAGS='-O4 -Olimit 2000'

‎src/template/unixware

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ if test "$GCC" = yes; then
33
else
44
CFLAGS='-O -K inline'
55
fi
6+
VENDOR_CXXFLAGS="-O"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp