From: Rich Felker Date: Thu, 17 Feb 2011 22:12:52 +0000 (-0500) Subject: new solution for empty lib dir (old one had some problems) X-Git-Tag: v0.6.0~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4fd159568aa1852fbbe6c11d35ccecaec3715d7c;p=oweals%2Fmusl.git new solution for empty lib dir (old one had some problems) --- diff --git a/Makefile b/Makefile index c3d29d24..56bfb40d 100644 --- a/Makefile +++ b/Makefile @@ -74,22 +74,20 @@ include/bits/alltypes.h: include/bits/alltypes.h.sh %.lo: %.c $(GENH) $(CC) $(CFLAGS) $(INC) $(PIC) -c -o $@ $< -lib: - mkdir -p lib - -lib/libc.so: $(LOBJS) lib +lib/libc.so: $(LOBJS) $(CC) $(LDFLAGS) -o $@ $(LOBJS) -lgcc $(OBJCOPY) --weaken $@ -lib/libc.a: $(OBJS) lib +lib/libc.a: $(OBJS) rm -f $@ $(AR) rc $@ $(OBJS) $(RANLIB) $@ -$(EMPTY_LIBS): lib +$(EMPTY_LIBS): + rm -f $@ $(AR) rc $@ -lib/%.o: crt/%.o lib +lib/%.o: crt/%.o cp $< $@ tools/musl-gcc: tools/gen-musl-gcc.sh config.mak diff --git a/lib/empty b/lib/empty new file mode 100644 index 00000000..e69de29b