summaryrefslogtreecommitdiffstats
path: root/lib/libmd/Makefile
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2004-02-26 07:44:37 +0000
committerbde <bde@FreeBSD.org>2004-02-26 07:44:37 +0000
commitfd2c94bc06aae20fe6c885ec5804b512900bf5fc (patch)
treec28d4e47d588b0d37a76d5f7173fa1699afc92f8 /lib/libmd/Makefile
parentff55724eab275c5ceb3abd2ce5b490bca633b10e (diff)
downloadFreeBSD-src-fd2c94bc06aae20fe6c885ec5804b512900bf5fc.zip
FreeBSD-src-fd2c94bc06aae20fe6c885ec5804b512900bf5fc.tar.gz
Backed out rev.1.6 and subsequent copying of it (bogus addition of
-static to CFLAGS). It just turned rev.1.5 into an obfuscated no-op. As explained in the log for rev.1.5, testing should be done in the host environment but there is a problem in cross-compilation environments. As not explained in the log for rev.1.6, there was apparently a practical problem with cross-compiling (makeworld should have set -static in LDFLAGS but apparently didn't). Cross-compilation was especially complicated because the relevant programs are test programs that were run at beforeinstall time -- dynamic libraries might or might not exist depending on the build options. The complications became moot in rev.1.8 when beforeinstall was renamed "test".
Diffstat (limited to 'lib/libmd/Makefile')
-rw-r--r--lib/libmd/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libmd/Makefile b/lib/libmd/Makefile
index e1566fc..f3759eb 100644
--- a/lib/libmd/Makefile
+++ b/lib/libmd/Makefile
@@ -148,24 +148,24 @@ rmd160.ref:
test: md2.ref md4.ref md5.ref sha0.ref rmd160.ref sha1.ref
@${ECHO} if any of these test fail, the code produces wrong results
@${ECHO} and should NOT be used.
- ${CC} -static ${CFLAGS} ${LDFLAGS} -DMD=2 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
+ ${CC} ${CFLAGS} ${LDFLAGS} -DMD=2 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
./mddriver | cmp md2.ref -
@${ECHO} MD2 passed test
- ${CC} -static ${CFLAGS} ${LDFLAGS} -DMD=4 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
+ ${CC} ${CFLAGS} ${LDFLAGS} -DMD=4 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
./mddriver | cmp md4.ref -
@${ECHO} MD4 passed test
- ${CC} -static ${CFLAGS} ${LDFLAGS} -DMD=5 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
+ ${CC} ${CFLAGS} ${LDFLAGS} -DMD=5 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
./mddriver | cmp md5.ref -
@${ECHO} MD5 passed test
-rm -f mddriver
- ${CC} -static ${CFLAGS} ${LDFLAGS} -o rmddriver ${.CURDIR}/rmddriver.c -L. -lmd
+ ${CC} ${CFLAGS} ${LDFLAGS} -o rmddriver ${.CURDIR}/rmddriver.c -L. -lmd
./rmddriver | cmp rmd160.ref -
@${ECHO} RIPEMD160 passed test
-rm -f rmddriver
- ${CC} -static ${CFLAGS} ${LDFLAGS} -DSHA=0 -o shadriver ${.CURDIR}/shadriver.c -L. -lmd
+ ${CC} ${CFLAGS} ${LDFLAGS} -DSHA=0 -o shadriver ${.CURDIR}/shadriver.c -L. -lmd
./shadriver | cmp sha0.ref -
@${ECHO} SHA-0 passed test
- ${CC} -static ${CFLAGS} ${LDFLAGS} -DSHA=1 -o shadriver ${.CURDIR}/shadriver.c -L. -lmd
+ ${CC} ${CFLAGS} ${LDFLAGS} -DSHA=1 -o shadriver ${.CURDIR}/shadriver.c -L. -lmd
./shadriver | cmp sha1.ref -
@${ECHO} SHA-1 passed test
-rm -f shadriver
OpenPOWER on IntegriCloud