summaryrefslogtreecommitdiff
path: root/cryptopp.mapfile
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-11-09 18:59:04 -0500
committerJeffrey Walton <noloader@gmail.com>2018-11-09 18:59:04 -0500
commit2106086f1fccd845700bc759b13ac793097ca636 (patch)
treed30a2b682db115e9e8027204c14b06091b73e920 /cryptopp.mapfile
parenta592d64d1d748df925c4c4929fd36f41875c6d9d (diff)
downloadcryptopp-git-2106086f1fccd845700bc759b13ac793097ca636.tar.gz
Fix Solaris mapfile
The mapfile now removes all hwcaps_1 (SSE-AVX), and hwcaps_2 (AVX2, RDRAND, RDSEED). Unfortunately, it requires 2 and does not work on Solaris 9.
Diffstat (limited to 'cryptopp.mapfile')
-rw-r--r--cryptopp.mapfile13
1 files changed, 11 insertions, 2 deletions
diff --git a/cryptopp.mapfile b/cryptopp.mapfile
index b374c315..a8f15303 100644
--- a/cryptopp.mapfile
+++ b/cryptopp.mapfile
@@ -2,5 +2,14 @@
# for the mapfile version 1 syntax. Also see https://stackoverflow.com/q/53210019/608639 and
# https://www.oracle.com/technetwork/server-storage/solaris/hwcap-modification-139536.html
-hwcap_1 = SSE SSE2 OVERRIDE;
-hwcap_2 = V0x0;
+# Use this if you need $mapfile_version 1. Unfortunately, it does
+# not work. The linker does not remove hwcap_2 capabilities.
+# hwcap_1 = SSE SSE2 OVERRIDE;
+# hwcap_2 = V0x0;
+
+# This will clear all caps, but it does not work on Solaris 9
+$mapfile_version 2
+CAPABILITY {
+ HW_1 = ;
+ HW_2 = ;
+};