diff options
author | Neil Conway | 2007-07-16 17:38:48 +0000 |
---|---|---|
committer | Neil Conway | 2007-07-16 17:38:48 +0000 |
commit | b17df8487d181cc18fbcc941bd6a71011daa70b0 (patch) | |
tree | 965816c983708cde1f8ba554a6c1e958aae32412 | |
parent | 39dfd014a6bd7d005066141c5170e26ac74f2f27 (diff) |
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.
-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.* |