diff --git a/README.md b/README.md index 1a7ebf5b..5f8ebed2 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ or clone the repository first, and then update submodules with: git submodule update --init --recursive ``` -Install cmake then: +Install cmake (and libasan on Linux) then: ``` mkdir build diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b0b22152..f9451b68 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -35,6 +35,10 @@ if(NOT PCM_NO_ASAN) set(PCM_NO_STATIC_LIBASAN ON) message(STATUS "CentOS detected, using dynamic libasan") endif() + if(OS_ID STREQUAL "arch") + set(PCM_NO_STATIC_LIBASAN ON) + message(STATUS "arch Linux detected, using dynamic libasan") + endif() endif() if(UNIX) # LINUX, FREE_BSD, APPLE @@ -80,7 +84,7 @@ if(UNIX) # LINUX, FREE_BSD, APPLE set(PCM_DYNAMIC_ASAN "") set(PCM_STATIC_ASAN "-static-libasan") message(STATUS "Using static libasan") - message(STATUS "To use dynamic libasan, use -DPCM_NO_STATIC_LIBASAN=1 option (required for CentOS)") + message(STATUS "To use dynamic libasan, use -DPCM_NO_STATIC_LIBASAN=1 option (required for CentOS and arch Linux)") endif() endif()