summaryrefslogtreecommitdiffstats
path: root/Makefile.org
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-01-30 01:14:34 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-01-30 01:14:34 +0000
commit225c272193413b727cfffe2ac03a9bb5888459be (patch)
treed992557199366171a4719a047d9a036ade8c8011 /Makefile.org
parent9fdb2cc59294c376030ee0e658748bfb77dfc2f8 (diff)
Fix shared build for fips
Diffstat (limited to 'Makefile.org')
-rw-r--r--Makefile.org6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.org b/Makefile.org
index ddc4e827c1..ad956476d5 100644
--- a/Makefile.org
+++ b/Makefile.org
@@ -369,8 +369,12 @@ all_testapps: build_libs build_testapps
build_testapps:
@dir=crypto; target=testapps; $(BUILD_ONE_CMD)
-libcrypto$(SHLIB_EXT): libcrypto.a
+libcrypto$(SHLIB_EXT): libcrypto.a build_fips
@if [ "$(SHLIB_TARGET)" != "" ]; then \
+ if [ "$(FIPSCANLIB)" = "libcrypto" ]; then \
+ FIPSLD_CC="$(CC)"; CC=fips/fipsld; \
+ export CC FIPSLD_CC; \
+ fi; \
$(MAKE) SHLIBDIRS=crypto build-shared; \
else \
echo "There's no support for shared libraries on this platform" >&2; \