X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile;h=0c134175fe6be221b12b8780dd1aeb6caeef8d63;hb=db11e96493d1a814266104332fa1f53a51622213;hp=4f93049204fbfc4581e33e61ff6ca53320a3c8e5;hpb=e765239f334d670e1b68289a2fcaa6b82a3b9666;p=musl diff --git a/Makefile b/Makefile index 4f930492..0c134175 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ CFLAGS = -Os -pipe CFLAGS_C99FSE = -std=c99 -ffreestanding -nostdinc CFLAGS_ALL = $(CFLAGS_C99FSE) -CFLAGS_ALL += -D_XOPEN_SOURCE=700 -I./src/internal -I./include -I./arch/$(ARCH) +CFLAGS_ALL += -D_XOPEN_SOURCE=700 -I./arch/$(ARCH) -I./src/internal -I./include CFLAGS_ALL += $(CPPFLAGS) $(CFLAGS) CFLAGS_ALL_STATIC = $(CFLAGS_ALL) CFLAGS_ALL_SHARED = $(CFLAGS_ALL) -fPIC -DSHARED -O3 @@ -124,10 +124,12 @@ $(DESTDIR)$(libdir)/%: lib/% $(DESTDIR)$(includedir)/%: include/% install -D -m 644 $< $@ -$(DESTDIR)$(LDSO_PATHNAME): lib/libc.so - install -d -m 755 $(DESTDIR)$(syslibdir) || true +$(DESTDIR)$(LDSO_PATHNAME): $(DESTDIR)$(syslibdir) ln -sf $(libdir)/libc.so $@ || true +$(DESTDIR)$(syslibdir): + install -d -m 755 $(DESTDIR)$(syslibdir) + .PRECIOUS: $(CRT_LIBS:lib/%=crt/%) .PHONY: all clean install