mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
bintools-wrapper: Don't pass -z to lld targeting Windows
This commit is contained in:
parent
dee9af9323
commit
4c0d5f80fc
@ -335,6 +335,11 @@ stdenv.mkDerivation {
|
||||
echo "-arch ${targetPlatform.darwinArch}" >> $out/nix-support/libc-ldflags
|
||||
''
|
||||
|
||||
# lld's MinGW driver (e.g. `ld.lld -m i386pep`) does not support the `-z` flag.
|
||||
+ optionalString (targetPlatform.isWindows && isLld) ''
|
||||
hardening_unsupported_flags+=" relro bindnow"
|
||||
''
|
||||
|
||||
##
|
||||
## GNU specific extra strip flags
|
||||
##
|
||||
|
Loading…
Reference in New Issue
Block a user