-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vagrant: use LDFLAGS="-Wl,--no-as-needed" in sanitizer runs
Since version 10, both gcc and clang started to ignore certain linker errors when compiling with -fsanitize=address. This eventually leads up to -lcrypt not being correctly propagated, but the fact is masked by the aforementioned issue. However, when the binary attempts to load a symbol from the libcrypt binary, it crashes since it's not linked correctly against it. Negating the -Wl,--as-needed used by default by -Wl,--no-as-needed seems to help in this case. See: https://bugzilla.redhat.com/show_bug.cgi?id=1827338#c3 #247
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters