Explicitly link against ASAN libraries
Some systems (Ubuntu Trusty) require explicit linking against ASAN libraries.
This commit is contained in:
@ -54,12 +54,6 @@ add_library(maxscale-common SHARED
|
||||
workertask.cc
|
||||
)
|
||||
|
||||
if(WITH_JEMALLOC)
|
||||
target_link_libraries(maxscale-common ${JEMALLOC_LIBRARIES})
|
||||
elseif(WITH_TCMALLOC)
|
||||
target_link_libraries(maxscale-common ${TCMALLOC_LIBRARIES})
|
||||
endif()
|
||||
|
||||
target_link_libraries(maxscale-common
|
||||
${MARIADB_CONNECTOR_LIBRARIES}
|
||||
${LZMA_LINK_FLAGS}
|
||||
@ -80,6 +74,10 @@ target_link_libraries(maxscale-common
|
||||
${MICROHTTPD_LIBRARIES}
|
||||
)
|
||||
|
||||
if(WITH_ASAN AND ASAN_FOUND)
|
||||
target_link_libraries(maxscale-common ${ASAN_LIBRARIES})
|
||||
endif()
|
||||
|
||||
find_library(HAVE_LIBDL NAMES dl)
|
||||
if (HAVE_LIBDL)
|
||||
# libdl just exposes libc functionality on most systems. This means that if
|
||||
|
||||
Reference in New Issue
Block a user