diff options
| author | annalee <150648636+a-n-n-a-l-e-e@users.noreply.github.com> | 2023-11-21 20:01:32 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2023-11-26 16:42:14 +0000 |
| commit | c2a6e083b8025a8b392178c979a783983d8a3305 (patch) | |
| tree | bdbabc5a774d63f583b085735d6a9872fc2a1fcd | |
| parent | Merge pull request #270181 from NixOS/backport-270165-to-release-23.11 (diff) | |
| download | nixpkgs-c2a6e083b8025a8b392178c979a783983d8a3305.tar.gz | |
lp_solve: ignore implicit int warnings, add x64 darwin ldflags
the configuration code generates small c programs with a main function
sans return type specifer. this causes clang builds to fail. add
'-Wno-error=implicit-int' to fix the build.
add -headerpad_max_install_names to env.NIX_LDFLAGS for x64 darwin
(cherry picked from commit 540ea20215f48e308cd08ef4e705d2fa08ada11e)
| -rw-r--r-- | pkgs/applications/science/math/lp_solve/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/lp_solve/default.nix b/pkgs/applications/science/math/lp_solve/default.nix index 6a1bc86abced..ee54def6eb97 100644 --- a/pkgs/applications/science/math/lp_solve/default.nix +++ b/pkgs/applications/science/math/lp_solve/default.nix @@ -22,6 +22,12 @@ stdenv.mkDerivation rec { autoSignDarwinBinariesHook ]; + env = { + NIX_CFLAGS_COMPILE = "-Wno-error=implicit-int"; + } // lib.optionalAttrs (stdenv.isDarwin && stdenv.isx86_64) { + NIX_LDFLAGS = "-headerpad_max_install_names"; + }; + dontConfigure = true; buildPhase = |
