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


  51 CRTN=           pics/crtn.o
  52 CRTS=           $(CRTI)         $(CRTN)
  53 
  54 CHKSRCS=        $(SRCBASE)/uts/common/krtld/reloc.h
  55 
  56 BASEPLAT =      sparc
  57 
  58 include         $(SRC)/Makefile.master
  59 
  60 # We build sparc objects with cc by default
  61 MAPFILE-ORDER =         ../common/mapfile-order-devpro
  62 $(__GNUC64)MAPFILE-ORDER =      ../common/mapfile-order-gcc
  63 
  64 include         $(SRC)/cmd/sgs/rtld/Makefile.com
  65 include         $(SRC)/lib/Makefile.lib.64
  66 
  67 # Add any machine specific flags.
  68 
  69 CPPFLAGS +=     -I../../../../uts/sparc/krtld
  70 CFLAGS +=       -xregs=no%appl
  71 ASFLAGS +=      -s -K pic -D__sparcv9 -D_ELF64 $(sparcv9_XARCH)
  72 ADBGENFLAGS +=  -mlp64
  73 ADBGENCFLAGS += -erroff=%all
  74 ADBSUB=         $(ADBSUB64)
  75 CPPFLAGS +=     -D_ELF64
  76 LINTFLAGS64 +=  $(VAR_LINTFLAGS64)
  77 SONAME=         /lib/sparcv9/ld.so.1
  78 
  79 SGSMSGTARG +=   $(SGSMSGSPARC) $(SGSMSGSPARC64) $(SGSMSG64)
  80 
  81 LDLIB =         -L ../../libld/$(MACH64)
  82 RTLDLIB =       -L ../../librtld/$(MACH64)
  83 
  84 CPICLIB =       $(CPICLIB64)
  85 LDDBGLIBDIR =   $(LDDBGLIBDIR64)
  86 CONVLIBDIR =    $(CONVLIBDIR64)
  87 
  88 
  89 .KEEP_STATE:
  90 
  91 all:            $(RTLD)


  51 CRTN=           pics/crtn.o
  52 CRTS=           $(CRTI)         $(CRTN)
  53 
  54 CHKSRCS=        $(SRCBASE)/uts/common/krtld/reloc.h
  55 
  56 BASEPLAT =      sparc
  57 
  58 include         $(SRC)/Makefile.master
  59 
  60 # We build sparc objects with cc by default
  61 MAPFILE-ORDER =         ../common/mapfile-order-devpro
  62 $(__GNUC64)MAPFILE-ORDER =      ../common/mapfile-order-gcc
  63 
  64 include         $(SRC)/cmd/sgs/rtld/Makefile.com
  65 include         $(SRC)/lib/Makefile.lib.64
  66 
  67 # Add any machine specific flags.
  68 
  69 CPPFLAGS +=     -I../../../../uts/sparc/krtld
  70 CFLAGS +=       -xregs=no%appl
  71 ASFLAGS +=      -s $(AS_PICFLAGS) -D__sparcv9 -D_ELF64 $(sparcv9_XARCH)
  72 ADBGENFLAGS +=  -mlp64
  73 ADBGENCFLAGS += -erroff=%all
  74 ADBSUB=         $(ADBSUB64)
  75 CPPFLAGS +=     -D_ELF64
  76 LINTFLAGS64 +=  $(VAR_LINTFLAGS64)
  77 SONAME=         /lib/sparcv9/ld.so.1
  78 
  79 SGSMSGTARG +=   $(SGSMSGSPARC) $(SGSMSGSPARC64) $(SGSMSG64)
  80 
  81 LDLIB =         -L ../../libld/$(MACH64)
  82 RTLDLIB =       -L ../../librtld/$(MACH64)
  83 
  84 CPICLIB =       $(CPICLIB64)
  85 LDDBGLIBDIR =   $(LDDBGLIBDIR64)
  86 CONVLIBDIR =    $(CONVLIBDIR64)
  87 
  88 
  89 .KEEP_STATE:
  90 
  91 all:            $(RTLD)