Skip to content
Snippets Groups Projects
Commit 1da62d87 authored by Cristiano Moraes's avatar Cristiano Moraes Committed by Luite Stegeman
Browse files

configure: Find C++ probing when GCC version is the latest but G++ is old #23118

(cherry picked from commit 78ad81ec)
parent 69020c2a
No related branches found
No related tags found
No related merge requests found
......@@ -53,10 +53,11 @@ EOF
try_libs() {
dnl Try to link a plain object with CC manually
AC_MSG_CHECKING([for linkage against '${3}'])
if "$CC" -o actest actest.o ${1} 2>/dev/null; then
dnl Ensures that CC uses same library path of CXX.
p="`"$CXX" --print-file-name ${2}`"
d="`dirname "$p"`"
if "$CC" -o actest actest.o ${1} -L"$d" 2>/dev/null; then
CXX_STD_LIB_LIBS="${3}"
p="`"$CXX" --print-file-name ${2}`"
d="`dirname "$p"`"
dnl On some platforms (e.g. Windows) the C++ standard library
dnl can be found in the system search path. In this case $CXX
dnl --print-file-name will simply print the filename without a
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment