git.iko.soy/typeable/nixpkgs
on master help sign in
sage: set CXXFLAGS to match CFLAGS in sage-env
commit79cc492cebc8fc1d1cc5f2fc9658e8ea27b751b2 authorMauricio Collares <mauricio@collares.org> dateThu 7 Apr 2022, 14:06 (5 years ago) parent384117b
1 file changed+2
pkgs/applications/science/math/sage/sage-env.nix+2
pkgs/applications/science/math/sage/sage-env.nix+2
@@ -151,6 +151,7 @@ writeTextFile rec {
151151
152152 # needed for cython
153153 export CC='${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc'
154+ export CXX='${stdenv.cc}/bin/${stdenv.cc.targetPrefix}c++'
154155 # cython needs to find these libraries, otherwise will fail with `ld: cannot find -lflint` or similar
155156 export LDFLAGS='${
156157 lib.concatStringsSep " " (map (pkg: "-L${pkg}/lib") [
@@ -178,6 +179,7 @@ writeTextFile rec {
178179 mpfr.dev
179180 ])
180181 }'
182+ export CXXFLAGS=$CFLAGS
181183
182184 export SAGE_LIB='${sagelib}/${python3.sitePackages}'
183185