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


  49 CSTD_GNU89 =    $(CSTD_GNU99)
  50 
  51 CFLAGS +=       $(CCVERBOSE) $(DEBUG) $(XFFLAG)
  52 CFLAGS64 +=     $(CCVERBOSE) $(DEBUG) $(XFFLAG)
  53 
  54 CERRWARN +=     -_gcc=-Wno-type-limits
  55 CERRWARN +=     -_gcc=-Wno-parentheses
  56 CERRWARN +=     -_gcc=-Wno-unused-value
  57 
  58 #
  59 # Location of the shared elfcap code
  60 #
  61 ELFCAP=         $(SRC)/common/elfcap
  62 
  63 # Reassign CPPFLAGS so that local search paths are used before any parent
  64 # $ROOT paths.
  65 CPPFLAGS =      -I. -I../common -I../../include -I../../include/$(MACH) \
  66                 $(CPPFLAGS.master) -I$(ELFCAP)
  67 
  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
  71 $(PICS64) :=    CPPFLAGS += -DPIC -D_REENTRANT
  72 
  73 LDFLAGS +=      $(ZIGNORE)
  74 DYNFLAGS +=     $(ZIGNORE)
  75 
  76 # Establish the local tools, proto and package area.
  77 
  78 SGSHOME =       $(SRC)/cmd/sgs
  79 SGSPROTO =      $(SGSHOME)/proto/$(MACH)
  80 SGSTOOLS =      $(SGSHOME)/tools
  81 SGSMSGID =      $(SGSHOME)/messages
  82 SGSMSGDIR =     $(SGSHOME)/messages/$(MACH)
  83 SGSONLD =       $(ROOT)/opt/SUNWonld
  84 SGSRPATH =      /usr/lib
  85 SGSRPATH64 =    $(SGSRPATH)/$(MACH64)
  86 
  87 # Mimic the structure of an installed system.
  88 
  89 SGSLIBDIR =     $(SGSPROTO)/lib
  90 SGSPREFIX =     $(SGSPROTO)/usr




  49 CSTD_GNU89 =    $(CSTD_GNU99)
  50 
  51 CFLAGS +=       $(CCVERBOSE) $(DEBUG) $(XFFLAG)
  52 CFLAGS64 +=     $(CCVERBOSE) $(DEBUG) $(XFFLAG)
  53 
  54 CERRWARN +=     -_gcc=-Wno-type-limits
  55 CERRWARN +=     -_gcc=-Wno-parentheses
  56 CERRWARN +=     -_gcc=-Wno-unused-value
  57 
  58 #
  59 # Location of the shared elfcap code
  60 #
  61 ELFCAP=         $(SRC)/common/elfcap
  62 
  63 # Reassign CPPFLAGS so that local search paths are used before any parent
  64 # $ROOT paths.
  65 CPPFLAGS =      -I. -I../common -I../../include -I../../include/$(MACH) \
  66                 $(CPPFLAGS.master) -I$(ELFCAP)
  67 
  68 # PICS64 is unique to our environment
  69 $(PICS64) :=    sparc_CFLAGS += -xregs=no%appl $(C_PICFLAGS)
  70 $(PICS64) :=    sparcv9_CFLAGS += -xregs=no%appl $(C_PICFLAGS)
  71 $(PICS64) :=    CPPFLAGS += -DPIC -D_REENTRANT
  72 
  73 LDFLAGS +=      $(ZIGNORE)
  74 DYNFLAGS +=     $(ZIGNORE)
  75 
  76 # Establish the local tools, proto and package area.
  77 
  78 SGSHOME =       $(SRC)/cmd/sgs
  79 SGSPROTO =      $(SGSHOME)/proto/$(MACH)
  80 SGSTOOLS =      $(SGSHOME)/tools
  81 SGSMSGID =      $(SGSHOME)/messages
  82 SGSMSGDIR =     $(SGSHOME)/messages/$(MACH)
  83 SGSONLD =       $(ROOT)/opt/SUNWonld
  84 SGSRPATH =      /usr/lib
  85 SGSRPATH64 =    $(SGSRPATH)/$(MACH64)
  86 
  87 # Mimic the structure of an installed system.
  88 
  89 SGSLIBDIR =     $(SGSPROTO)/lib
  90 SGSPREFIX =     $(SGSPROTO)/usr