summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/powerpc/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/powerpc/Makefile b/libc/sysdeps/linux/powerpc/Makefile
index d877b85e3..4614627a7 100644
--- a/libc/sysdeps/linux/powerpc/Makefile
+++ b/libc/sysdeps/linux/powerpc/Makefile
@@ -30,10 +30,11 @@ TARGET_MACHINE_TYPE=$(shell $(CC) -dumpmachine)
ifeq ($(USE_CRT0_C),y)
CRT0=crt0.c
+CRT0_OBJ=$(patsubst %.c,%.o, $(CRT0))
else
CRT0=crt0.S
-endif
CRT0_OBJ=$(patsubst %.S,%.o, $(CRT0))
+endif
SSRC=longjmp.S setjmp.S vfork.S
SOBJS=$(patsubst %.S,%.o, $(SSRC))
@@ -51,7 +52,8 @@ $(LIBC): ar-target
ar-target: $(OBJS) $(CRT0_OBJ)
$(AR) $(ARFLAGS) $(LIBC) $(OBJS)
- cp $(CRT0_OBJ) $(TOPDIR)libc/$(CRT0_OBJ)
+ cp $(CRT0_OBJ) $(TOPDIR)libc
+
ifeq ($(USE_CRT0_C),y)
$(CRT0_OBJ): %.o : %.c