Skip to content

Commit

Permalink
lcalc: workaround for vendored <complex>
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
paparodeo authored and pull[bot] committed Jan 2, 2025
1 parent e818339 commit 6710ccc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/by-name/lc/lcalc/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6710ccc

Please sign in to comment.