Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lambdageek
Copy link
Member

See msys2/MINGW-packages#5803

Without -lssp (or -fstack-protector), -D_FORTIFY_SOURCE=2 leads to linker
errors.

Fixes #18287

See msys2/MINGW-packages#5803

Without -lssp (or -fstack-protector), -D_FORTIFY_SOURCE=2 leads to linker
errors.
@lambdageek
Copy link
Member Author

Another option is to:

  1. Take a patched ax_add_fortify_source.m4 from ax_add_fortify_source.m4: improve for -Wcpp autoconf-archive/autoconf-archive#208
  2. Pass -fstack-protector on cygwin builds. (have to be careful, however, because for the Android SDK we want to make sure -lssp is linked statically - we don't redistribute cygwin dlls)

@lambdageek lambdageek marked this pull request as ready for review December 27, 2019 17:12
@lambdageek lambdageek requested a review from vargaz as a code owner December 27, 2019 17:12
@lambdageek
Copy link
Member Author

@monojenkins backport to 2019-12
@monojenkins backport to 2019-10

@lateralusX
Copy link
Member

This is correct fix, I had this fix done in a different repro a couple of months ago, waiting on the bigger merge of #16832 to go live before merging it in, but unfortunately it never got into master and was forgotten (sine we didn't see any issues on CI due to keeping older cygwin tooling). Great that you identified and fixed the issue, removing the dependency on older cygwin tooling.

ManickaP pushed a commit to ManickaP/runtime that referenced this pull request Jan 20, 2020
See msys2/MINGW-packages#5803

Without -lssp (or -fstack-protector), -D_FORTIFY_SOURCE=2 leads to linker
errors.

Commit migrated from mono/mono@61eb2be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cygwin compile fails with "undefined reference to "__chk_fail"

3 participants