summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2007-02-11 00:51:58 +0000
committerDr. Stephen Henson <steve@openssl.org>2007-02-11 00:51:58 +0000
commitc9e912599f15b3507f1e97793bb960567c345568 (patch)
tree2e2ecd6fb334cc01142a3e6def19a62a4f9e1560
parent53ddf0cc10b698ec5f2972127325fbdd743f7811 (diff)
downloadopenssl-new-c9e912599f15b3507f1e97793bb960567c345568.tar.gz
FIPSLD_NPT environment variable to disable pass-thru when building
standalone utilities.
-rwxr-xr-xfips-1.0/fipsld4
-rw-r--r--test/Makefile3
2 files changed, 6 insertions, 1 deletions
diff --git a/fips-1.0/fipsld b/fips-1.0/fipsld
index 92c864ede4..ec10e20c0f 100755
--- a/fips-1.0/fipsld
+++ b/fips-1.0/fipsld
@@ -27,6 +27,9 @@ CC=${FIPSLD_CC:-${CC}}
# simple checks. Pass-thru to compiler directly if not linking
# to libcrypto, allowing auto-tooled applications to utilize fipsld
# (e.g. CC=/usr/local/ssl/bin/fipsld FIPSLD_CC=gcc ./configure && make )
+# If FIPSLD_NPT is set never call the pass-thru: the standalone fips commands
+# need this because they don't link to libcrypto
+[ "x$FIPSLD_NPT" != "x" ] || {
case "$*" in
*libcrypto.a*)
;;
@@ -36,6 +39,7 @@ case "$*" in
exec ${CC} $*
;;
esac
+}
# Turn on debugging output?
( while [ "x$1" != "x" -a "x$1" != "x-DDEBUG_FINGERPRINT_PREMAIN" ]; do shift; done;
diff --git a/test/Makefile b/test/Makefile
index 1eeba890eb..34724f9993 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -352,7 +352,8 @@ STANDALONE_BUILD_CMD=SHARED_LIBS="$(SHARED_LIBS)"; \
fi
FIPS_BUILD_CMD=if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \
- FIPSLD_CC=$(CC); CC=$(TOP)/fips-1.0/fipsld; export CC FIPSLD_CC; \
+ FIPSLD_CC=$(CC); CC=$(TOP)/fips-1.0/fipsld; FIPSLD_NPT="y"\
+ export CC FIPSLD_CC FIPSLD_STANDALONE ; \
fi; $(STANDALONE_BUILD_CMD)
FIPS_CRYPTO_BUILD_CMD=if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \