X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=Makefile;h=683850d30078075a71741a3895ed8df7705acbb4;hp=0c134175fe6be221b12b8780dd1aeb6caeef8d63;hb=0d4d1a96e4fd827267250e469affc7ebfc44324f;hpb=fcaec912ed406659832f452e71a6c965308362dd diff --git a/Makefile b/Makefile index 0c134175..683850d3 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,7 @@ GENH = include/bits/alltypes.h IMPH = src/internal/stdio_impl.h src/internal/pthread_impl.h src/internal/libc.h LDFLAGS = +LIBCC = -lgcc CPPFLAGS = CFLAGS = -Os -pipe CFLAGS_C99FSE = -std=c99 -ffreestanding -nostdinc @@ -76,6 +77,8 @@ include/bits/alltypes.h.sh: include/bits include/bits/alltypes.h: include/bits/alltypes.h.sh sh $< > $@ +src/ldso/dynlink.lo: arch/$(ARCH)/reloc.h + %.o: $(ARCH)/%.s $(CC) $(CFLAGS_ALL_STATIC) -c -o $@ $< @@ -91,7 +94,7 @@ include/bits/alltypes.h: include/bits/alltypes.h.sh lib/libc.so: $(LOBJS) $(CC) $(CFLAGS_ALL_SHARED) $(LDFLAGS) -nostdlib -shared \ -Wl,-e,_start -Wl,-Bsymbolic-functions \ - -Wl,-soname=libc.so -o $@ $(LOBJS) -lgcc + -Wl,-soname=libc.so -o $@ $(LOBJS) $(LIBCC) lib/libc.a: $(OBJS) rm -f $@