Skip to content

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

Open
@roachspray

Description

@roachspray

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)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions