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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/ntxn/Makefile
          +++ new/usr/src/uts/intel/ntxn/Makefile
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  
  22   22  #
       23 +# Copyright 2014 Gary Mills
  23   24  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   25  # Use is subject to license terms.
  25   26  #
  26   27  #
  27   28  #       This makefile drives the production of the Neterion Xframe
  28   29  #       10G Ethernet (XGE) driver module in x86 systems
  29   30  #
  30   31  
  31   32  #
  32   33  #       Paths to the base of the uts directory trees
↓ open down ↓ 16 lines elided ↑ open up ↑
  49   50  
  50   51  #
  51   52  #       Define targets
  52   53  #
  53   54  ALL_TARGET      = $(BINARY) $(SRC_CONFILE)
  54   55  LINT_TARGET     = $(MODULE).lint
  55   56  INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
  56   57  
  57   58  INC_PATH        += -I$(CONF_SRCDIR)
  58   59  
  59      -CFLAGS          +=  -DSOLARIS11 -xO4
  60      -CFLAGS64        +=  -DSOLARIS11 -xO -I./
       60 +COPTFLAG        = $(ADJUST_OPT2) -_cc=-xO4 -_gcc=-O2
       61 +COPTFLAG64      = $(ADJUST_OPT2) -_cc=-xO4 -_gcc=-O2
       62 +CFLAGS          +=  -DSOLARIS11
       63 +CFLAGS64        +=  -DSOLARIS11 -I./
  61   64  
  62   65  #
  63   66  #       Driver depends on MAC & IP
  64   67  #
  65   68  LDFLAGS         +=  -dy -N misc/mac -N drv/ip
  66   69  
  67   70  #       Lint flag
  68   71  #
  69   72  LINTFLAGS       += $(NTXN_DFLAGS) $(NTXN_KFLAGS)
  70   73  LINTFLAGS       += -DSOLARIS11
↓ open down ↓ 31 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX