diff options
author | Neil Conway <neilc@samurai.com> | 2007-07-16 17:38:48 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2007-07-16 17:38:48 +0000 |
commit | e9e97500c908fc39c37baecc3be9b02c7a5c7cd5 (patch) | |
tree | b9ad5dad8ab423d64ff6dfcd8ff799623e2adcf8 /src/template | |
parent | ae1b7e298cd99e808ec8410a808fcb2e44f8520e (diff) | |
download | postgresql-e9e97500c908fc39c37baecc3be9b02c7a5c7cd5.tar.gz |
With the native compiler on Unixware, disable optimization if
--enable-debug is used, to avoid complaints about debugging and
optimization being mutually exclusive. Patch from Stefan Kaltenbrunner.
Diffstat (limited to 'src/template')
-rw-r--r-- | src/template/unixware | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/template/unixware b/src/template/unixware index 8173ae44e5..d08fca1e6b 100644 --- a/src/template/unixware +++ b/src/template/unixware @@ -12,10 +12,14 @@ void g(void){ } __EOF__ + # Debugging and optimization are mutually exclusive + if test "$enable_debug" != yes; then + CFLAGS="-O" + fi if $CC -c -O -Kinline conftest.c >conftest.err 2>&1; then - CFLAGS="-O -Kinline" + CFLAGS="$CFLAGS -Kinline" else - CFLAGS="-O -Kinline,no_host" + CFLAGS="$CFLAGS -Kinline,no_host" fi rm -f conftest.* |