git.iko.soy/typeable/nixpkgs
on master help sign in
stdenv: disable -fPIC on cygwin

It's always on, and you get a warning if you specify it

commit63a1a2ac63451fc47a5992f8e04e42843f019ecd authorDavid McFarland <corngood@gmail.com> dateTue 20 Jun 2017, 15:04 (9 years ago) parent4ac1901
1 file changed+6
pkgs/build-support/cc-wrapper/default.nix+6
pkgs/build-support/cc-wrapper/default.nix+6
@@ -359,7 +359,13 @@ stdenv.mkDerivation {
359359 if [[ "$($ldPath/${prefix}ld -z relro 2>&1 || true)" =~ un(recognized|known)\ option ]]; then
360360 hardening_unsupported_flags+=" relro"
361361 fi
362+ ''
363+
364+ + optionalString hostPlatform.isCygwin ''
365+ hardening_unsupported_flags+=" pic"
366+ ''
362367
368+ + ''
363369 substituteAll ${preWrap ./add-flags.sh} $out/nix-support/add-flags.sh
364370 substituteAll ${preWrap ./add-hardening.sh} $out/nix-support/add-hardening.sh
365371 cp -p ${preWrap ./utils.sh} $out/nix-support/utils.sh