diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-02-17 17:12:52 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-02-17 17:12:52 -0500 |
commit | 4fd159568aa1852fbbe6c11d35ccecaec3715d7c (patch) | |
tree | 4d3bdfc95a7ff04c3771cbc8a89800532821b7ad /Makefile | |
parent | a36164c4743df0a9112fb3641966b213694e25f7 (diff) | |
download | musl-4fd159568aa1852fbbe6c11d35ccecaec3715d7c.tar.gz musl-4fd159568aa1852fbbe6c11d35ccecaec3715d7c.tar.bz2 musl-4fd159568aa1852fbbe6c11d35ccecaec3715d7c.tar.xz musl-4fd159568aa1852fbbe6c11d35ccecaec3715d7c.zip |
new solution for empty lib dir (old one had some problems)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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 |