Skip to content

Commit

Permalink
Make configure use -lc++ on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jfowkes committed Oct 30, 2023
1 parent c5c1d0b commit 6ce2ee7
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,15 @@ SPRAL_NO_FORT_MAIN

# Establish -lstdc++ or equivalent
if test "x$CXXLIB" == "x"; then
if test "x$CXX" == "xifort"; then
CXXLIB="-cxxlib"
else
CXXLIB="-lstdc++"
fi
if test "x$CXX" == "xifort"; then
CXXLIB="-cxxlib"
else
if test "x$CXX" == "xclang"; then
CXXLIB="-lc++"
else
CXXLIB="-lstdc++"
fi
fi
fi
AC_SUBST(CXXLIB)

Expand Down

0 comments on commit 6ce2ee7

Please sign in to comment.