Commit e9e97500 authored by Neil Conway's avatar Neil Conway

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.
parent ae1b7e29
...@@ -12,10 +12,14 @@ void g(void){ ...@@ -12,10 +12,14 @@ void g(void){
} }
__EOF__ __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 if $CC -c -O -Kinline conftest.c >conftest.err 2>&1; then
CFLAGS="-O -Kinline" CFLAGS="$CFLAGS -Kinline"
else else
CFLAGS="-O -Kinline,no_host" CFLAGS="$CFLAGS -Kinline,no_host"
fi fi
rm -f conftest.* rm -f conftest.*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment