summaryrefslogtreecommitdiff
path: root/Makefile.org
diff options
context:
space:
mode:
authorsteve <steve>2011-01-30 01:14:34 +0000
committersteve <steve>2011-01-30 01:14:34 +0000
commitc4f41f7cb26472582611440c00d610e869c0968f (patch)
treef8db741f790582df746bd58c71ec7e26e291f5c4 /Makefile.org
parentb1c7442f247f048d829967d021033b0cd5ad7d33 (diff)
downloadopenssl-c4f41f7cb26472582611440c00d610e869c0968f.tar.gz
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 ddc4e827c..ad956476d 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; \