diff options
| author | Jeffrey Walton <noloader@gmail.com> | 2017-09-09 16:26:16 -0400 |
|---|---|---|
| committer | Jeffrey Walton <noloader@gmail.com> | 2017-09-09 16:26:16 -0400 |
| commit | e6f19111e09f02801a66a66ca9ec37af95bf82ea (patch) | |
| tree | 8b947f6634766b28cc65ab7dbc3affb6f533168b /TestScripts | |
| parent | 263c38d68149102e4b55e4eca5bafba66a217f45 (diff) | |
| download | cryptopp-git-e6f19111e09f02801a66a66ca9ec37af95bf82ea.tar.gz | |
Fix IBM XL C/C++ compiler version output in test script
Diffstat (limited to 'TestScripts')
| -rwxr-xr-x | TestScripts/cryptest.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/TestScripts/cryptest.sh b/TestScripts/cryptest.sh index b620420e..694bed8d 100755 --- a/TestScripts/cryptest.sh +++ b/TestScripts/cryptest.sh @@ -466,6 +466,9 @@ if [[ (-z "$HAVE_PIC") ]]; then if [[ "$PIC_PROBLEMS" -eq "0" ]]; then HAVE_PIC=1 OPT_PIC=-fPIC + if [[ ("$XLC_COMPILER" -eq "1") ]]; then + OPT_PIC=-qpic + fi fi fi @@ -890,6 +893,8 @@ fi if [[ ("$SUN_COMPILER" -ne "0") ]]; then echo $("$CXX" -V 2>&1 | "$SED" 's|CC:|Compiler:|g' | head -1) | tee -a "$TEST_RESULTS" +elif [[ ("$XLC_COMPILER" -ne "0") ]]; then + echo "Compiler:" $("$CXX" -qversion | head -1) | tee -a "$TEST_RESULTS" else echo "Compiler:" $("$CXX" --version | head -1) | tee -a "$TEST_RESULTS" fi |
