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

@@ -18,10 +18,11 @@
 #
 # CDDL HEADER END
 #
 
 #
+# Copyright 2014 Gary Mills
 # Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
 #
 
 LIBRARY =       libsoftcrypto.a
 VERS =          .1

@@ -54,11 +55,13 @@
 SRCDIR =        $(SRC)/lib/pkcs11/libsoftcrypto/common
 
 LIBS =          $(DYNLIB) $(LINTLIB)
 MAPFILEDIR =    ../common
 
-CFLAGS +=       -xO4 -xcrossfile
+COPTFLAG        = $(ADJUST_OPT2) -_cc=-xO4 -_gcc=-O2
+COPTFLAG64      = $(ADJUST_OPT2) -_cc=-xO4 -_gcc=-O2
+CFLAGS +=       -xcrossfile
 CPPFLAGS +=     -I$(CRYPTODIR) -I$(UTSDIR) -D_POSIX_PTHREAD_SEMANTICS
 ASFLAGS +=      $(AS_PICFLAGS) -P -D__STDC__ -D_ASM
 BIGNUM_FLAGS += -DPSR_MUL
 CLEANFILES +=   arcfour-x86_64.s
 LDLIBS +=       -lcryptoutil -lc