From f25209267f155f8954a35d979df4f7f776f50142 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sun, 26 Jun 2005 21:48:19 +0000 Subject: [PATCH] Update fips_test_suite make rule. --- fips/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fips/Makefile b/fips/Makefile index 4fe4075d96..e05b8f3f23 100644 --- a/fips/Makefile +++ b/fips/Makefile @@ -107,8 +107,12 @@ top_fips_test_suite: (cd $(TOP); $(MAKE) DIRS=fips FDIRS=. TARGET=fips_test_suite sub_target) fips_test_suite: fips_test_suite.o $(TOP)/libcrypto.a - $(CC) $(CFLAGS) -o fips_test_suite fips_test_suite.o $(PEX_LIBS) $(TOP)/libcrypto.a $(EX_LIBS) - TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a fips_test_suite || { rm fips_test_suite; false; } + @if [ -z "$(SHARED_LIBS)" ]; then \ + set -x; $(CC) $(CFLAGS) -o fips_test_suite fips_test_suite.o $(PEX_LIBS) $(TOP)/libcrypto.a $(EX_LIBS); \ + TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a fips_test_suite || { rm fips_test_suite; false; }; \ + else \ + set -x; $(CC) $(CFLAGS) -o fips_test_suite fips_test_suite.o $(PEX_LIBS) -L$(TOP) -lcrypto $(EX_LIBS); \ + fi fips_test: top tests -cd testvectors && perl -p -i -e 's/COUNT=/COUNT = /' des[23]/req/*.req -- 2.25.1