[hackers] [ubase] Break out libs into LDLIBS || sin
commit 78196620244d797752f87597797dfe0c4bb80bec
Author: sin <sin_AT_2f30.org>
Date: Sun Nov 30 12:30:52 2014 +0000
Break out libs into LDLIBS
diff --git a/Makefile b/Makefile
index 6d196da..9f070bf 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -150,7 +150,7 @@ config.h:
cp config.def.h $_AT_
.o:
- $(LD) $(LDFLAGS) -o $_AT_ $< $(LIB)
+ $(LD) $(LDFLAGS) -o $_AT_ $< $(LIB) $(LDLIBS)
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -o $_AT_ -c $<
_AT_@ -198,7 +198,7 @@ ubase-box: $(LIB) $(SRC)
echo 'else {' >> build/$_AT_.c
for f in $(SRC); do echo "printf(\"`basename $$f .c`\"); putchar(' ');" >> build/$_AT_.c; done
echo "putchar(0xa); }; return 0; }" >> build/$_AT_.c
- $(LD) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $_AT_ build/*.c $(LIB)
+ $(LD) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $_AT_ build/*.c $(LIB) $(LDLIBS)
rm -r build
clean:
diff --git a/config.mk b/config.mk
index 899bbf8..9bddc52 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -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
Received on Sun Nov 30 2014 - 13:31:26 CET
This archive was generated by hypermail 2.3.0
: Sun Nov 30 2014 - 13:36:09 CET