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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libc/sparc/Makefile.com
          +++ new/usr/src/lib/libc/sparc/Makefile.com
↓ open down ↓ 1122 lines elided ↑ open up ↑
1123 1123  
1124 1124  ALTPICS= $(TRACEOBJS:%=pics/%)
1125 1125  
1126 1126  $(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) $(EXTPICS)
1127 1127  
1128 1128  MAPFILES =      $(LIBCDIR)/port/mapfile-vers
1129 1129  
1130 1130  CFLAGS +=       $(EXTN_CFLAGS)
1131 1131  CPPFLAGS=       -D_REENTRANT -Dsparc $(EXTN_CPPFLAGS) $(THREAD_DEBUG) \
1132 1132                  -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
1133      -ASFLAGS=        $(EXTN_ASFLAGS) -K pic -P -D__STDC__ -D_ASM $(CPPFLAGS) $(sparc_AS_XARCH)
     1133 +ASFLAGS=        $(EXTN_ASFLAGS) $(AS_PICFLAGS) -P -D__STDC__ -D_ASM $(CPPFLAGS) $(sparc_AS_XARCH)
1134 1134  
1135 1135  # As a favor to the dtrace syscall provider, libc still calls the
1136 1136  # old syscall traps that have been obsoleted by the *at() interfaces.
1137 1137  # Delete this to compile libc using only the new *at() system call traps
1138 1138  CPPFLAGS += -D_RETAIN_OLD_SYSCALLS
1139 1139  
1140 1140  # Inform the run-time linker about libc specialized initialization
1141 1141  RTLDINFO =      -z rtldinfo=tls_rtldinfo
1142 1142  DYNFLAGS +=     $(RTLDINFO)
1143 1143  
↓ open down ↓ 231 lines elided ↑ open up ↑
1375 1375          $(MCS) -d -n .SUNW_dof $@ > /dev/null 2>&1
1376 1376          $(AR) -ts $@ > /dev/null
1377 1377          $(POST_PROCESS_A)
1378 1378  
1379 1379  # special cases
1380 1380  $(STRETS:%=pics/%): $(LIBCBASE)/crt/stret.s
1381 1381          $(AS) $(ASFLAGS) -DSTRET$(@F:stret%.o=%) $(LIBCBASE)/crt/stret.s -o $@
1382 1382          $(POST_PROCESS_O)
1383 1383  
1384 1384  $(LIBCBASE)/crt/_rtbootld.s:    $(LIBCBASE)/crt/_rtboot.s $(LIBCBASE)/crt/_rtld.c
1385      -        $(CC) $(CPPFLAGS) $(CTF_FLAGS) -O -S -K pic \
     1385 +        $(CC) $(CPPFLAGS) $(CTF_FLAGS) -O -S $(C_PICFLAGS) \
1386 1386              $(LIBCBASE)/crt/_rtld.c -o $(LIBCBASE)/crt/_rtld.s
1387 1387          $(CAT) $(LIBCBASE)/crt/_rtboot.s $(LIBCBASE)/crt/_rtld.s > $@
1388 1388          $(RM) $(LIBCBASE)/crt/_rtld.s
1389 1389  
1390 1390  # partially built from C source
1391 1391  pics/_rtbootld.o: $(LIBCBASE)/crt/_rtbootld.s
1392 1392          $(AS) $(ASFLAGS) $(LIBCBASE)/crt/_rtbootld.s -o $@
1393 1393          $(CTFCONVERT_O)
1394 1394  
1395 1395  ASSYMDEP_OBJS=                  \
↓ open down ↓ 37 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX