ubase

suckless linux base utils
git clone git://git.2f30.org/ubase.git
Log | Files | Refs | README | LICENSE

commit d8fbc28641441c230ee779300f53b082cf48c93a
parent a758fa50efa0e8742ca1d6669270265e1389e702
Author: sin <sin@2f30.org>
Date:   Sun Nov 30 12:30:52 +0000

Break out libs into LDLIBS

Diffstat:
Makefile | 4++--
config.mk | 3++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile @@ -150,7 +150,7 @@ config.h: cp config.def.h $@ .o: - $(LD) $(LDFLAGS) -o $@ $< $(LIB) + $(LD) $(LDFLAGS) -o $@ $< $(LIB) $(LDLIBS) .c.o: $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< @@ -198,7 +198,7 @@ ubase-box: $(LIB) $(SRC) echo 'else {' >> build/$@.c for f in $(SRC); do echo "printf(\"`basename $$f .c`\"); putchar(' ');" >> build/$@.c; done echo "putchar(0xa); }; return 0; }" >> build/$@.c - $(LD) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ build/*.c $(LIB) + $(LD) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ build/*.c $(LIB) $(LDLIBS) rm -r build clean: diff --git a/config.mk b/config.mk @@ -12,4 +12,5 @@ RANLIB = ranlib CPPFLAGS = -D_XOPEN_SOURCE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 CFLAGS = -std=c99 -Wall -Wextra -LDFLAGS = -s -lcrypt # -static +LDLIBS = -lcrypt +LDFLAGS = -s