diff --git a/Makefile b/Makefile index 3bd7b4d79e46bc17a15b9b12ac0e744d15ad43bb..2eb7b3084589207e99662087d3bd1dc66fa103f8 100644 --- a/Makefile +++ b/Makefile @@ -85,9 +85,11 @@ src/internal/version.h: $(wildcard VERSION .git) src/internal/version.lo: src/internal/version.h -src/ldso/dlstart.lo src/ldso/dynlink.lo: src/internal/dynlink.h arch/$(ARCH)/reloc.h +crt/rcrt1.o src/ldso/dlstart.lo src/ldso/dynlink.lo: src/internal/dynlink.h arch/$(ARCH)/reloc.h -crt/crt1.o crt/Scrt1.o src/ldso/dlstart.lo: $(wildcard arch/$(ARCH)/crt_arch.h) +crt/crt1.o crt/Scrt1.o crt/rcrt1.o src/ldso/dlstart.lo: $(wildcard arch/$(ARCH)/crt_arch.h) + +crt/rcrt1.o: src/ldso/dlstart.c crt/Scrt1.o crt/rcrt1.o: CFLAGS += -fPIC