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

Commitfca71f4

Browse files
committed
Add compile -O flag only for non-debug mode, per Tom
1 parentd18ba3f commitfca71f4

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

‎configure

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2393,12 +2393,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
23932393
if test "$ac_env_CFLAGS_set" = set; then
23942394
CFLAGS=$ac_env_CFLAGS_value
23952395
fi
2396-
# configure sets CFLAGS to -O2 for gcc, so this is only for non-gcc
2397-
if test x"$CFLAGS" = x""; then
2398-
CFLAGS="-O"
2399-
fi
24002396
if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
24012397
CFLAGS="$CFLAGS -g"
2398+
else
2399+
# configure sets CFLAGS to -O2 for gcc, so this is only for non-gcc
2400+
if test x"$CFLAGS" = x""; then
2401+
CFLAGS="-O"
2402+
fi
24022403
fi
24032404
{ echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
24042405
echo "$as_me: using CFLAGS=$CFLAGS" >&6;}

‎configure.in

Lines changed: 6 additions & 5 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.294 2003/10/09 03:20:33 momjian Exp $
2+
dnl $Header: /cvsroot/pgsql/configure.in,v 1.295 2003/10/14 00:48:09 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -238,12 +238,13 @@ AC_PROG_CC([$pgac_cc_list])
238238
if test "$ac_env_CFLAGS_set" = set; then
239239
CFLAGS=$ac_env_CFLAGS_value
240240
fi
241-
# configure sets CFLAGS to -O2 for gcc, so this is only for non-gcc
242-
if test x"$CFLAGS" = x""; then
243-
CFLAGS="-O"
244-
fi
245241
if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
246242
CFLAGS="$CFLAGS -g"
243+
else
244+
# configure sets CFLAGS to -O2 for gcc, so this is only for non-gcc
245+
if test x"$CFLAGS" = x""; then
246+
CFLAGS="-O"
247+
fi
247248
fi
248249
AC_MSG_NOTICE([using CFLAGS=$CFLAGS])
249250

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp