diff options
author | Moritz Angermann <moritz.angermann@gmail.com> | 2023-03-13 06:46:15 +0000 |
---|---|---|
committer | Moritz Angermann <moritz.angermann@gmail.com> | 2023-03-13 06:46:15 +0000 |
commit | eda28ef51ccf23665a8a4f2fcf4deb2c7df13d26 (patch) | |
tree | 1c678c211d3cbc27dc1effb329d80c753c49a687 | |
parent | ec263a59b886ea616dabce349df7a377d5356dd5 (diff) | |
download | haskell-wip/angerman/fix-configure.tar.gz |
Use CXX when trying to link a c++ object against a c++ library.
wip/angerman/fix-configure
Using CC is not guaranteed to have the right C++ semantics during linking.
-rw-r--r-- | m4/fp_find_cxx_std_lib.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/fp_find_cxx_std_lib.m4 b/m4/fp_find_cxx_std_lib.m4 index 09f4524d89..7ceb2f10e5 100644 --- a/m4/fp_find_cxx_std_lib.m4 +++ b/m4/fp_find_cxx_std_lib.m4 @@ -51,9 +51,9 @@ EOF fi try_libs() { - dnl Try to link a plain object with CC manually + dnl Try to link a plain object with CXX manually AC_MSG_CHECKING([for linkage against '${3}']) - if "$CC" -o actest actest.o ${1} 2>/dev/null; then + if "$CXX" -o actest actest.o ${1} 2>/dev/null; then CXX_STD_LIB_LIBS="${3}" p="`"$CXX" --print-file-name ${2}`" d="`dirname "$p"`" |