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

@@ -36,11 +36,11 @@
                 -I$(ROOT)/usr/platform/sun4v/include \
                 -I$(ROOT)/usr/include/v9
 
 AS_CPPFLAGS +=  -D__STDC__ -D_ASM -DPIC -D_REENTRANT -D$(MACH) $(IFLAGS) \
                 -DNIAGARA2_IMPL
-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.