Skip to content
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

Ensure proper flags to gcc, clang when using ASan #11

Open
roachspray opened this issue Dec 11, 2019 · 1 comment
Open

Ensure proper flags to gcc, clang when using ASan #11

roachspray opened this issue Dec 11, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@roachspray
Copy link
Contributor

For Perl and libpcap, there is some usage of link errors that will show up due to -Wl,--no-undefined and -fsanitize=address.

(1)For GCC, I use "-Wl,--no-undefined" and "-fsanitize=address" both, if the linker
fails, add "-lasan" for linker flag.
(2)For Clang Ubuntu, I use "-Wl,--no-undefined" by default. If "-fsanitize=address"
is set, turn off the flag "-Wl,--no-undefined".

(from google sanitizers issue 380)

@roachspray roachspray added the bug Something isn't working label Dec 11, 2019
@roachspray
Copy link
Contributor Author

Work being done on the branch build_and_version_cleanup

@roachspray roachspray self-assigned this Dec 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant