Update fips_test_suite make rule.
authorAndy Polyakov <appro@openssl.org>
Sun, 26 Jun 2005 21:48:19 +0000 (21:48 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 26 Jun 2005 21:48:19 +0000 (21:48 +0000)
fips/Makefile

index 4fe4075d96e83e6fdd50bfad880dba0e705123e2..e05b8f3f23c96a59dc4c15716ccb1caab8d65bd4 100644 (file)
@@ -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