-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)