Add mapfile to allow additional capability bits

Also see http://www.oracle.com/technetwork/server-storage/solaris/hwcap-modification-139536.html
pull/405/head
Jeffrey Walton 2017-04-23 12:11:08 -04:00
parent 422600c5b8
commit e2f5da337e
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 16 additions and 1 deletions

View File

@ -318,6 +318,21 @@ endif # IS_X86
##### Common ##### ##### Common #####
########################################################### ###########################################################
# For SunOS, create a Mapfile that allows our object files
# to cantain additional bits (like SSE4 and AES on old Xeon)
# http://www.oracle.com/technetwork/server-storage/solaris/hwcap-modification-139536.html
ifeq ($(IS_SUN)$(SUN_COMPILER),11)
ifneq ($(IS_X86)$(IS_X32)$(IS_X64),000)
ifeq ($(findstring -DCRYPTOPP_DISABLE_ASM,$(CXXFLAGS)),)
ifeq ($(wildcard cryptopp.mapfile),)
$(shell echo "hwcap_1 = SSE SSE2 OVERRIDE;" > cryptopp.mapfile)
$(shell echo "" >> cryptopp.mapfile)
endif # Write mapfile
LDFLAGS += -M cryptopp.mapfile
endif # No CRYPTOPP_DISABLE_ASM
endif # X86/X32/X64
endif # SunOS
ifneq ($(IS_MINGW),0) ifneq ($(IS_MINGW),0)
LDLIBS += -lws2_32 LDLIBS += -lws2_32
endif endif
@ -608,7 +623,7 @@ clean:
.PHONY: distclean .PHONY: distclean
distclean: clean distclean: clean
-$(RM) adhoc.cpp adhoc.cpp.copied GNUmakefile.deps benchmarks.html cryptest.txt cryptest-*.txt -$(RM) adhoc.cpp adhoc.cpp.copied cryptopp.mapfile GNUmakefile.deps benchmarks.html cryptest.txt cryptest-*.txt
@-$(RM) CMakeCache.txt Makefile CTestTestfile.cmake cmake_install.cmake cryptopp-config-version.cmake @-$(RM) CMakeCache.txt Makefile CTestTestfile.cmake cmake_install.cmake cryptopp-config-version.cmake
@-$(RM) cryptopp.tgz *.o *.bc *.ii *~ @-$(RM) cryptopp.tgz *.o *.bc *.ii *~
@-$(RM) -r $(SRCS:.cpp=.obj) *.suo *.sdf *.pdb Win32/ x64/ ipch/ @-$(RM) -r $(SRCS:.cpp=.obj) *.suo *.sdf *.pdb Win32/ x64/ ipch/