Skip to content

Commit

Permalink
SuiteSparse: Use MacPorts CXXFLAGS
Browse files Browse the repository at this point in the history
This allows the correct C++ standard library to be used.

The build system uses CFLAGS for both C and C++ code and doesn't provide
a separate variable to use for C++ code, so the flags have to be moved
into the CC and CXX variables.
  • Loading branch information
ryandesign committed Jun 4, 2018
1 parent 7093d1e commit 5c93ca6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions math/SuiteSparse/Portfile
Expand Up @@ -6,7 +6,7 @@ PortGroup compilers 1.0
name SuiteSparse
epoch 20120107
version 4.2.1
revision 4
revision 5
categories math science
platforms darwin
maintainers {michaelld @michaelld} openmaintainer
Expand Down Expand Up @@ -105,9 +105,8 @@ use_parallel_build no

pre-build {
build.args-append \
CC="${configure.cc}" \
CXX="${configure.cxx}" \
CFLAGS="${configure.cflags}" \
CC="${configure.cc} ${configure.cflags}" \
CXX="${configure.cxx} ${configure.cxxflags}" \
TARGET_ARCH="[get_canonical_archflags]"
}

Expand Down

0 comments on commit 5c93ca6

Please sign in to comment.