Solaris native compiler configure fixes

* Drop '-mt' from '$CC'
* Use '$CC -V' for version in summary
This commit is contained in:
Mark Andrews
2021-06-30 12:14:30 +10:00
parent fc6c04d8f8
commit d029cfd10a
2 changed files with 24 additions and 6 deletions
Vendored
+12 -3
View File
@@ -17341,7 +17341,7 @@ then
CCNOOPT="$CCNOOPT -pthread"
;;
*-solaris*)
CC="$CC -mt"
CC="$CC"
CCOPT="$CCOPT -mt"
CCNOOPT="$CCNOOPT -mt"
;;
@@ -29223,8 +29223,17 @@ report() {
echo " localstatedir: $localstatedir"
echo "-------------------------------------------------------------------------------"
echo "Compiler: $CC"
$CC --version 2>&1 | sed 's/^/ /'
if test "yes" == "$GCC"; then
$CC --version 2>&1 | sed 's/^/ /'
else
case "$host_os" in
solaris*)
$CC -V 2>&1 | sed 's/^/ /'
;;
*)
$CC --version 2>&1 | sed 's/^/ /'
esac
fi
if test "X$ac_unrecognized_opts" != "X"; then
echo "Unrecognized options:"
echo " $ac_unrecognized_opts"
+12 -3
View File
@@ -1325,7 +1325,7 @@ then
CCNOOPT="$CCNOOPT -pthread"
;;
*-solaris*)
CC="$CC -mt"
CC="$CC"
CCOPT="$CCOPT -mt"
CCNOOPT="$CCNOOPT -mt"
;;
@@ -5769,8 +5769,17 @@ report() {
echo " localstatedir: $localstatedir"
echo "-------------------------------------------------------------------------------"
echo "Compiler: $CC"
$CC --version 2>&1 | sed 's/^/ /'
if test "yes" == "$GCC"; then
$CC --version 2>&1 | sed 's/^/ /'
else
case "$host_os" in
solaris*)
$CC -V 2>&1 | sed 's/^/ /'
;;
*)
$CC --version 2>&1 | sed 's/^/ /'
esac
fi
if test "X$ac_unrecognized_opts" != "X"; then
echo "Unrecognized options:"
echo " $ac_unrecognized_opts"