Print this page
9884 cw(1) should use -fpic rather than -Kpic

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/Makefile.com
          +++ new/usr/src/cmd/sgs/Makefile.com
↓ open down ↓ 58 lines elided ↑ open up ↑
  59   59  # Location of the shared elfcap code
  60   60  #
  61   61  ELFCAP=         $(SRC)/common/elfcap
  62   62  
  63   63  # Reassign CPPFLAGS so that local search paths are used before any parent
  64   64  # $ROOT paths.
  65   65  CPPFLAGS =      -I. -I../common -I../../include -I../../include/$(MACH) \
  66   66                  $(CPPFLAGS.master) -I$(ELFCAP)
  67   67  
  68   68  # PICS64 is unique to our environment
  69      -$(PICS64) :=    sparc_CFLAGS += -xregs=no%appl -K pic
  70      -$(PICS64) :=    sparcv9_CFLAGS += -xregs=no%appl -K pic
       69 +$(PICS64) :=    sparc_CFLAGS += -xregs=no%appl $(C_PICFLAGS)
       70 +$(PICS64) :=    sparcv9_CFLAGS += -xregs=no%appl $(C_PICFLAGS)
  71   71  $(PICS64) :=    CPPFLAGS += -DPIC -D_REENTRANT
  72   72  
  73   73  LDFLAGS +=      $(ZIGNORE)
  74   74  DYNFLAGS +=     $(ZIGNORE)
  75   75  
  76   76  # Establish the local tools, proto and package area.
  77   77  
  78   78  SGSHOME =       $(SRC)/cmd/sgs
  79   79  SGSPROTO =      $(SGSHOME)/proto/$(MACH)
  80   80  SGSTOOLS =      $(SGSHOME)/tools
↓ open down ↓ 108 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX