diff options
| author | Dennis Camera <skonfig@dtnr.ch> | 2022-08-25 22:43:35 +0200 |
|---|---|---|
| committer | Dennis Camera <skonfig@dtnr.ch> | 2022-08-25 22:43:35 +0200 |
| commit | 704e87a95e6729f1fe1a7505ed01da23fcb1afc2 (patch) | |
| tree | e4120c57f08727cf6d0e1815c65719d7fd8cc3cc | |
| parent | 12f170a3891f5c4c850262730f525919d3a62bdf (diff) | |
| download | skonfig-c-704e87a95e6729f1fe1a7505ed01da23fcb1afc2.tar.gz skonfig-c-704e87a95e6729f1fe1a7505ed01da23fcb1afc2.zip | |
[configure.ac] Use -fsanitize if available
| -rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index ed42e9f..6f135bf 100644 --- a/configure.ac +++ b/configure.ac @@ -79,6 +79,13 @@ check_set_ccopt -fstack-protector-strong \ check_set_ccopt -fstack-clash-protection \ || check_set_ccopt -fstack-check # fallback +check_set_ccopt -fsanitize=leak +check_set_ccopt -fsanitize=address && { + check_set_ccopt -fsanitize=pointer-compare + check_set_ccopt -fsanitize=pointer-subtract +} +check_set_ccopt -fsanitize=undefined + # Check compiler capabilities AX_C___ATTRIBUTE__ |
