Skip to content
Closed
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
4 changes: 4 additions & 0 deletions pkgs/development/libraries/gmp/6.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ let self = stdenv.mkDerivation rec {
++ optional (!withStatic && stdenv.hostPlatform.isWindows) "--disable-static --enable-shared"
++ optional (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) "--disable-assembly";

# Required for "undefined reference to __memset_chk" error
# see https://github.com/msys2/MINGW-packages-dev/pull/6
NIX_LDFLAGS = lib.optionalString stdenv.targetPlatform.isWindows "-lssp";
Copy link
Member Author

@alexfmpe alexfmpe Jul 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CPPFLAGS=-fstack-protector also gets through the __memset_chk error, but later hits undefined reference to `__stack_chk_fail'`


doCheck = true; # not cross;

dontDisableStatic = withStatic;
Expand Down