Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions pkgs/by-name/li/libamplsolver/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,15 @@ stdenv.mkDerivation {
})
];

# Allow install_name_tool rewrite paths on darwin.
# error: install_name_tool: changing install names or rpaths can't be redone for: /nix/store/...-libamplsolver-.../lib/libamplsolver.dylib (for architecture arm64) because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names)
NIX_LDFLAGS = lib.optional stdenv.hostPlatform.isDarwin "-headerpad_max_install_names";
env = {
# For non-trapping FP architectures like loongarch64 and riscv64
NIX_CFLAGS_COMPILE = lib.optionalString (
stdenv.hostPlatform.isRiscV64 || stdenv.hostPlatform.isLoongArch64
) "-DNO_fpu_control";
# Allow install_name_tool rewrite paths on darwin.
# error: install_name_tool: changing install names or rpaths can't be redone for: /nix/store/...-libamplsolver-.../lib/libamplsolver.dylib (for architecture arm64) because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names)
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-headerpad_max_install_names";
};

installPhase = ''
runHook preInstall
Expand Down
Loading