Print this page
5196 The cw wrapper restricts gcc to -O2

@@ -18,10 +18,11 @@
 #
 # CDDL HEADER END
 #
 
 #
+# Copyright 2014 Gary Mills
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
 #
 #       This makefile drives the production of the Neterion Xframe

@@ -54,12 +55,14 @@
 LINT_TARGET     = $(MODULE).lint
 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
 
 INC_PATH        += -I$(CONF_SRCDIR)
 
-CFLAGS          +=  -DSOLARIS11 -xO4
-CFLAGS64        +=  -DSOLARIS11 -xO -I./
+COPTFLAG        = $(ADJUST_OPT2) -_cc=-xO4 -_gcc=-O2
+COPTFLAG64      = $(ADJUST_OPT2) -_cc=-xO4 -_gcc=-O2
+CFLAGS          +=  -DSOLARIS11
+CFLAGS64        +=  -DSOLARIS11 -I./
 
 #
 #       Driver depends on MAC & IP
 #
 LDFLAGS         +=  -dy -N misc/mac -N drv/ip