Minor shell modernization

time-shift
Sébastien Villemot 2019-04-05 12:12:13 +02:00
parent 0f1fdde166
commit dee230bf32
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 3 additions and 3 deletions

View File

@ -66,11 +66,11 @@ AM_PROG_AR
case ${host_os} in
*darwin*)
string="`$CXX --version`"
if test x"${string#*clang}" != x"$string"; then
string=$($CXX --version)
if test "${string#*clang}" != "$string"; then
CXXFLAGS="$CXXFLAGS -stdlib=libc++"
MATLAB_LIBS="$MATLAB_LIBS -lc++"
MATLAB_LDFLAGS="$MATLAB_LDFLAGS -Wl,-syslibroot,`xcrun -sdk macosx --show-sdk-path`"
MATLAB_LDFLAGS="$MATLAB_LDFLAGS -Wl,-syslibroot,$(xcrun -sdk macosx --show-sdk-path)"
else
MATLAB_LIBS="$MATLAB_LIBS -lstdc++"
fi