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

@@ -1128,11 +1128,11 @@
 MAPFILES =      $(LIBCDIR)/port/mapfile-vers
 
 CFLAGS +=       $(EXTN_CFLAGS)
 CPPFLAGS=       -D_REENTRANT -Dsparc $(EXTN_CPPFLAGS) $(THREAD_DEBUG) \
                 -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
-ASFLAGS=        $(EXTN_ASFLAGS) -K pic -P -D__STDC__ -D_ASM $(CPPFLAGS) $(sparc_AS_XARCH)
+ASFLAGS=        $(EXTN_ASFLAGS) $(AS_PICFLAGS) -P -D__STDC__ -D_ASM $(CPPFLAGS) $(sparc_AS_XARCH)
 
 # As a favor to the dtrace syscall provider, libc still calls the
 # old syscall traps that have been obsoleted by the *at() interfaces.
 # Delete this to compile libc using only the new *at() system call traps
 CPPFLAGS += -D_RETAIN_OLD_SYSCALLS

@@ -1380,11 +1380,11 @@
 $(STRETS:%=pics/%): $(LIBCBASE)/crt/stret.s
         $(AS) $(ASFLAGS) -DSTRET$(@F:stret%.o=%) $(LIBCBASE)/crt/stret.s -o $@
         $(POST_PROCESS_O)
 
 $(LIBCBASE)/crt/_rtbootld.s:    $(LIBCBASE)/crt/_rtboot.s $(LIBCBASE)/crt/_rtld.c
-        $(CC) $(CPPFLAGS) $(CTF_FLAGS) -O -S -K pic \
+        $(CC) $(CPPFLAGS) $(CTF_FLAGS) -O -S $(C_PICFLAGS) \
             $(LIBCBASE)/crt/_rtld.c -o $(LIBCBASE)/crt/_rtld.s
         $(CAT) $(LIBCBASE)/crt/_rtboot.s $(LIBCBASE)/crt/_rtld.s > $@
         $(RM) $(LIBCBASE)/crt/_rtld.s
 
 # partially built from C source