summaryrefslogtreecommitdiffstats
path: root/lib/libmd
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1994-08-28 17:45:25 +0000
committerbde <bde@FreeBSD.org>1994-08-28 17:45:25 +0000
commitac873250a5fef80ceb48fef97956139bab69f263 (patch)
tree774dd26138f1ea4911ed449fc804ba8af871f82b /lib/libmd
parentfc79ecf3e09da758d92f793cbd259356ae700462 (diff)
downloadFreeBSD-src-ac873250a5fef80ceb48fef97956139bab69f263.zip
FreeBSD-src-ac873250a5fef80ceb48fef97956139bab69f263.tar.gz
Use ${LDFLAGS} instead of static for compiling binaries. Neither is
sufficient for cross compiling but it's best to test with the flags normally used. Use ${ECHO} instead of `echo' so that `make -s' is fairly quiet.
Diffstat (limited to 'lib/libmd')
-rw-r--r--lib/libmd/Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/libmd/Makefile b/lib/libmd/Makefile
index 422ea68..888038a 100644
--- a/lib/libmd/Makefile
+++ b/lib/libmd/Makefile
@@ -64,17 +64,17 @@ md5.ref:
@echo 'MD5 ("12345678901234567890123456789012345678901234567890123456789012345678901234567890") = 57edf4a22be3c955ac49da2e2107b67a' >> $@
beforeinstall: md2.ref md4.ref md5.ref md2.3 md4.3 md5.3
- @echo if any of these test fail, the code produces wrong results
- @echo and should NOT be used.
- ${CC} ${CFLAGS} -static -DMD=2 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
+ @${ECHO} if any of these test fail, the code produces wrong results
+ @${ECHO} and should NOT be used.
+ ${CC} ${CFLAGS} ${LDFLAGS} -DMD=2 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
./mddriver | cmp md2.ref -
- @echo MD2 passed test
- ${CC} ${CFLAGS} -static -DMD=4 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
+ @${ECHO} MD2 passed test
+ ${CC} ${CFLAGS} ${LDFLAGS} -DMD=4 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
./mddriver | cmp md4.ref -
- @echo MD4 passed test
- ${CC} ${CFLAGS} -static -DMD=5 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
+ @${ECHO} MD4 passed test
+ ${CC} ${CFLAGS} ${LDFLAGS} -DMD=5 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
./mddriver | cmp md5.ref -
- @echo MD5 passed test
+ @${ECHO} MD5 passed test
-rm -f mddriver
beforedepend: md2hl.c md4hl.c md5hl.c
OpenPOWER on IntegriCloud