lcalc: workaround for vendored <complex>

https://gitlab.com/sagemath/lcalc/-/issues/16

add -D_GLIBCXX_COMPLEX -D_LIBCPP_COMPLEX -D_LIBCPP___FWD_COMPLEX_H to
prevent including system <complex> and use the vendored copy.
This commit is contained in:
Reno Dakota
2025-01-02 04:20:53 -08:00
parent c01b2522d1
commit 6e95ad3b2b
+8
View File
@@ -19,6 +19,14 @@ stdenv.mkDerivation rec {
hash = "sha256-RxWZ7T0I9zV7jUVnL6jV/PxEoU32KY7Q1UsOL5Lonuc=";
};
# workaround for vendored GCC 3.5 <complex>
# https://gitlab.com/sagemath/lcalc/-/issues/16
env.NIX_CFLAGS_COMPILE = toString [
"-D_GLIBCXX_COMPLEX"
"-D_LIBCPP_COMPLEX"
"-D_LIBCPP___FWD_COMPLEX_H"
];
nativeBuildInputs = [
autoreconfHook
gengetopt