--- a/components/openssl/openssl-fips-140/Makefile Wed Mar 15 10:30:53 2017 -0700
+++ b/components/openssl/openssl-fips-140/Makefile Fri Apr 21 13:46:39 2017 -0700
@@ -120,9 +120,9 @@
# We define our own compiler and linker option sets for Solaris. See Configure
# for more information.
-CONFIGURE_OPTIONS32_i386 = solaris-x86-cc-sunw
+CONFIGURE_OPTIONS32_i386 = solaris-fips-x86-cc-sunw
CONFIGURE_OPTIONS32_sparc = solaris-fips-sparcv9-cc-sunw
-CONFIGURE_OPTIONS64_i386 = solaris64-x86_64-cc-sunw
+CONFIGURE_OPTIONS64_i386 = solaris64-fips-x86_64-cc-sunw
CONFIGURE_OPTIONS64_sparc = solaris64-fips-sparcv9-cc-sunw
# Some additional options needed for our engines.
@@ -180,6 +180,15 @@
# libraries.
COMPONENT_PRE_INSTALL_ACTION = ( $(MKDIR) $(PROTO_DIR)/usr/lib/$(MACH64); )
+# Remove unnecessary RUNPATH/RPATH for libcrypto.so.1.0.0
+COMPONENT_POST_INSTALL_ACTION.32 = \
+ $(ELFEDIT) -e "dyn:delete RUNPATH" -e "dyn:delete RPATH" \
+ $(BUILD_DIR_32)/libcrypto.so.1.0.0;
+COMPONENT_POST_INSTALL_ACTION.64 = \
+ $(ELFEDIT) -e "dyn:delete RUNPATH" -e "dyn:delete RPATH" \
+ $(BUILD_DIR_64)/libcrypto.so.1.0.0;
+COMPONENT_POST_INSTALL_ACTION += $(COMPONENT_POST_INSTALL_ACTION.$(BITS))
+
$(SOURCE_DIR)/.prep: $(COMPONENT_DIR)/../openssl-fips/build/$(MACH32)/.installed \
$(COMPONENT_DIR)/../openssl-fips/build/$(MACH64)/.installed
@@ -214,3 +223,4 @@
REQUIRED_PACKAGES += developer/build/makedepend
REQUIRED_PACKAGES += network/rsync
REQUIRED_PACKAGES += system/library
+REQUIRED_PACKAGES += system/linker