git.iko.soy/typeable/nixpkgs
on master help sign in
Merge branch 'cc-wrapper/cygwin-fix' of git://github.com/corngood/nixpkgs into staging
commit171bcc5274b41226e5943247db1afb2e7559e23e authorShea Levy <shea@shealevy.com> dateTue 18 Oct 2016, 17:50 (10 years ago) parent2081a692b6659e
1 file changed+2−2
pkgs/build-support/cc-wrapper/default.nix+2−2
pkgs/build-support/cc-wrapper/default.nix+2−2
@@ -252,10 +252,10 @@ stdenv.mkDerivation {
252252
253253 # some linkers on some platforms don't support specific -z flags
254254 hardening_unsupported_flags=""
255− if [[ "$($ldPath/ld -z now 2>&1 || true)" =~ "unknown option" ]]; then
255+ if [[ "$($ldPath/ld -z now 2>&1 || true)" =~ un(recognized|known)\ option ]]; then
256256 hardening_unsupported_flags+=" bindnow"
257257 fi
258− if [[ "$($ldPath/ld -z relro 2>&1 || true)" =~ "unknown option" ]]; then
258+ if [[ "$($ldPath/ld -z relro 2>&1 || true)" =~ un(recognized|known)\ option ]]; then
259259 hardening_unsupported_flags+=" relro"
260260 fi
261261