mingw: Disalbe FORTIFY_SOURCE by default.#133479
Conversation
Would an alternative be to just add libssp or am I missing something? |
|
@SuperSandro2000 We'd have to add it to all links with fortify enabled, but just adding -lssp when fortify is given results in failed autoconf checks. Would need to track down the proper fix. |
That's more or less the conclusion I reached in #132188 (comment) |
|
Just for the record: I did not break |
|
@pstn Apologies for the lack of precision, I did mean gmp cross-compiled to mingw in that commit. I don't know what you mean by "feel the need to imply constantly." I just put that in one commit message to explain why this was needed now and not before. |
In newer versions of mingw, programs compiled with FORTIFY_SOURCE need
to link to libssp or they will have link-time errors.
gmp has been broken since @pstn updated mingw-64 in c60a0b0
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)