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

@@ -34,11 +34,11 @@
 
 IFLAGS =        -I$(SRC)/uts/$(GEN_PLATFORM) \
                 -I$(ROOT)/usr/platform/$(GEN_PLATFORM)/include
 
 AS_CPPFLAGS +=  -D__STDC__ -D_ASM -DPIC -D_REENTRANT -D$(MACH) $(IFLAGS)
-ASFLAGS =       -P -K pic
+ASFLAGS =       -P $(AS_PICFLAGS)
 
 # memcpy.s provides __align_cpy_1 as an alias for memcpy.  However, this isn't
 # a WEAK symbol, and hence ld(1)'s ability to cull duplicate local symbols with
 # the same address is compromised.  The result is .SUNW_dynsymsort: duplicate
 # symbol errors from check_rtime.  Use elfedit to assign a weak binding.