summaryrefslogtreecommitdiff
path: root/TestScripts
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-09-18 02:45:03 -0400
committerJeffrey Walton <noloader@gmail.com>2017-09-18 02:45:03 -0400
commit1661ff127a72b9e728eede13f75779ffb68f4b6a (patch)
tree8ed71ca2b06e878812c678c0e21d9dfc2955582d /TestScripts
parentcc855dd181460ce6c62f0c519b2bdf96f6dc2eab (diff)
downloadcryptopp-git-1661ff127a72b9e728eede13f75779ffb68f4b6a.tar.gz
Fix dead code strip test on AIX
Diffstat (limited to 'TestScripts')
-rwxr-xr-xTestScripts/cryptest.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/TestScripts/cryptest.sh b/TestScripts/cryptest.sh
index 74f3ec79..6343f724 100755
--- a/TestScripts/cryptest.sh
+++ b/TestScripts/cryptest.sh
@@ -208,6 +208,7 @@ XLC_COMPILER=$("$CXX" -qversion 2>&1 | "$GREP" -i -c "IBM XL")
INTEL_COMPILER=$("$CXX" --version 2>&1 | "$GREP" -i -c "\(icc\)")
MACPORTS_COMPILER=$("$CXX" --version 2>&1 | "$GREP" -i -c "MacPorts")
CLANG_COMPILER=$("$CXX" --version 2>&1 | "$GREP" -i -c "clang")
+GNU_LINKER=$(ld --version 2>&1 | "$GREP" -i -c "GNU ld")
if [[ ("$SUN_COMPILER" -eq "0") ]]; then
AMD64=$("$CXX" -dM -E - </dev/null 2>/dev/null | "$GREP" -i -c -E "(__x64_64__|__amd64__)")
@@ -3071,7 +3072,7 @@ fi
############################################
# Dead code stripping
-if [[ ("$SUN_COMPILER" -eq "0") ]]; then
+if [[ ("$GNU_LINKER" -eq "1") ]]; then
############################################
# Debug build