diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-05-26 14:36:56 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-05-26 14:36:56 +0000 |
commit | 2a351443276ea827c7716eb0e25933ed88444afb (patch) | |
tree | ac090e704e7a86fad0f24699deedc8f3d2c97fde /test/Makefile | |
parent | 7207eca1ee06ad4b5b5ab7b16e57f5f4f61606dd (diff) |
Make test utility link work for fips build.
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile index f87ae7adb4..12694dc40a 100644 --- a/test/Makefile +++ b/test/Makefile @@ -344,8 +344,11 @@ BUILD_CMD=shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \ shlib_target="$(SHLIB_TARGET)"; \ fi; \ LIBRARIES="$(LIBSSL) $(LIBCRYPTO) $(LIBKRB5)"; \ + if [ -z "$(SHARED_LIBS)" -a -n "$(FIPSCANLIB)" ] ; then \ + FIPSLD_CC="$(CC)"; CC=$(FIPSDIR)bin/fipsld; export CC FIPSLD_CC; \ + fi; \ $(MAKE) -f $(TOP)/Makefile.shared -e \ - APPNAME=$$target$(EXE_EXT) OBJECTS="$$target.o" \ + CC="$${CC}" APPNAME=$$target$(EXE_EXT) OBJECTS="$$target.o" \ LIBDEPS="$(PEX_LIBS) $$LIBRARIES $(EX_LIBS)" \ link_app.$${shlib_target} |