Skip to content

Commit

Permalink
new solution for empty lib dir (old one had some problems)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Felker committed Feb 17, 2011
1 parent a36164c commit 4fd1595
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Makefile
Expand Up @@ -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
Expand Down
Empty file added lib/empty
Empty file.

0 comments on commit 4fd1595

Please sign in to comment.