From d160679a5d1fd1d53cf337fad276b63cbb56e573 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 28 Aug 1994 17:45:25 +0000 Subject: [PATCH] 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. --- lib/libmd/Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/libmd/Makefile b/lib/libmd/Makefile index 422ea68fe4c8..888038aea803 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