diff --git a/src/template/unixware b/src/template/unixware
index f682a16675ef5a5d8e9b3660966f9e59d4e846e6..dc469873ccc740cdfd202d4b26dc5a82e26e84aa 100644
--- a/src/template/unixware
+++ b/src/template/unixware
@@ -14,7 +14,7 @@ void g(void){
 }
 __EOF__
 
-  if $CC -c -Kinline conftest.c >conftest.err 2>&1; then
+  if $CC -c -O -Kinline conftest.c >conftest.err 2>&1; then
     CFLAGS="-O -Kinline"
   else
     CFLAGS="-O -Kinline,no_host"