Print this page
9884 cw(1) should use -fpic rather than -Kpic
@@ -338,13 +338,13 @@
# SONAME is used by DYNFLAGS
$(DYNLIB4X) := SONAME = $(DYNLIB4X)
$(DYNLIBS5) := SONAME = $(DYNLIBS5)
-pics/%.o:= ASFLAGS += -K pic -DPIC
-pics/%.o:= CPPFLAGS += -K pic -DPIC
-s5pics/%.o:= ASFLAGS += -K pic -DPIC
+pics/%.o:= ASFLAGS += $(AS_PICFLAGS) -DPIC
+pics/%.o:= CPPFLAGS += $(C_PICFLAGS) -DPIC
+s5pics/%.o:= ASFLAGS += $(AS_PICFLAGS) -DPIC
DYNFLAGS += $(ZINTERPOSE)
BUILD.s= $(AS) $(ASFLAGS) $< -o $@
# libbc method of building an archive
@@ -379,11 +379,11 @@
../libc/compat/sys5/epoch.h \
$(S5PICOBJS)
CLOBBERFILES= ../libc/compat/sys5/mkepoch
# conditional assignments
-s5pics/%.o:= CPPFLAGS = -Dsparc -DS5EMUL -K pic -DPIC -I. -Iinc \
+s5pics/%.o:= CPPFLAGS = -Dsparc -DS5EMUL $(C_PICFLAGS) -DPIC -I. -Iinc \
-I../inc/5include -I../inc/include -I../inc/include/sys \
$(CPPFLAGS.master)
s5pics/%.o := CFLAGS += -xregs=no%appl
pics/%.o := CFLAGS += -xregs=no%appl