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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libc/sparcv9/Makefile.com
          +++ new/usr/src/lib/libc/sparcv9/Makefile.com
↓ open down ↓ 1059 lines elided ↑ open up ↑
1060 1060  
1061 1061  # Make string literals read-only to save memory.
1062 1062  CFLAGS64 += $(XSTRCONST)
1063 1063  
1064 1064  ALTPICS= $(TRACEOBJS:%=pics/%)
1065 1065  
1066 1066  $(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) $(EXTPICS)
1067 1067  
1068 1068  MAPFILES =      $(LIBCDIR)/port/mapfile-vers
1069 1069  
1070      -sparcv9_C_PICFLAGS= -K PIC
     1070 +sparcv9_C_PICFLAGS= $(sparcv9_C_BIGPICFLAGS)
1071 1071  CFLAGS64 +=     $(EXTN_CFLAGS)
1072 1072  CPPFLAGS=       -D_REENTRANT -Dsparc $(EXTN_CPPFLAGS) $(THREAD_DEBUG) \
1073 1073                  -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
1074      -ASFLAGS=        $(EXTN_ASFLAGS) -K PIC -P -D__STDC__ -D_ASM -D__sparcv9 $(CPPFLAGS) \
     1074 +ASFLAGS=        $(EXTN_ASFLAGS) $(AS_BIGPICFLAGS) -P -D__STDC__ -D_ASM -D__sparcv9 $(CPPFLAGS) \
1075 1075                  $(sparcv9_AS_XARCH)
1076 1076  
1077 1077  # As a favor to the dtrace syscall provider, libc still calls the
1078 1078  # old syscall traps that have been obsoleted by the *at() interfaces.
1079 1079  # Delete this to compile libc using only the new *at() system call traps
1080 1080  CPPFLAGS += -D_RETAIN_OLD_SYSCALLS
1081 1081  
1082 1082  # Inform the run-time linker about libc specialized initialization
1083 1083  RTLDINFO =      -z rtldinfo=tls_rtldinfo
1084 1084  DYNFLAGS +=     $(RTLDINFO)
↓ open down ↓ 259 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX