mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-01-03 14:56:34 -05:00
Cleanup: Use AS_CASE for sanitizer matching in configure
This commit is contained in:
parent
1289c48b05
commit
2c9d33efb1
17
configure.ac
17
configure.ac
@ -64,15 +64,18 @@ AS_VAR_IF(with_sanitizer, no, [], [
|
||||
])
|
||||
AX_APPEND_FLAG([-g])
|
||||
|
||||
AS_IF([test -z "${with_sanitizer##*address*}" ], [
|
||||
AX_APPEND_COMPILE_FLAGS([-fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=pointer-compare -fsanitize=pointer-subtract])
|
||||
])
|
||||
AS_IF([test -z "${with_sanitizer##*memory*}" ], [
|
||||
AS_CASE("${with_sanitizer}",
|
||||
[address], [
|
||||
AX_APPEND_COMPILE_FLAGS([-fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=pointer-compare -fsanitize=pointer-subtract])
|
||||
],
|
||||
[memory], [
|
||||
AX_APPEND_COMPILE_FLAGS([-fPIE -pie])
|
||||
])
|
||||
AS_IF([test -z "${with_sanitizer##*thread*}" ], [
|
||||
],
|
||||
[thread], [
|
||||
AX_APPEND_COMPILE_FLAGS([-fPIE -pie])
|
||||
])
|
||||
],
|
||||
[]
|
||||
)
|
||||
])
|
||||
|
||||
dnl Check for attributes
|
||||
|
Loading…
Reference in New Issue
Block a user