From 1661ff127a72b9e728eede13f75779ffb68f4b6a Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 18 Sep 2017 02:45:03 -0400 Subject: [PATCH] Fix dead code strip test on AIX --- TestScripts/cryptest.sh | 3 ++- cryptest.sh | 3 ++- 2 files changed, 4 insertions(+), 2 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 | "$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 diff --git a/cryptest.sh b/cryptest.sh index 74f3ec79..6343f724 100755 --- a/cryptest.sh +++ b/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 | "$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