Explicitly link against ASAN libraries
Some systems (Ubuntu Trusty) require explicit linking against ASAN libraries.
This commit is contained in:
@ -3,6 +3,10 @@ if (AVRO_FOUND AND JANSSON_FOUND)
|
|||||||
add_library(maxavro maxavro.c maxavro_schema.c maxavro_record.c maxavro_file.c)
|
add_library(maxavro maxavro.c maxavro_schema.c maxavro_record.c maxavro_file.c)
|
||||||
target_link_libraries(maxavro maxscale-common ${JANSSON_LIBRARIES})
|
target_link_libraries(maxavro maxscale-common ${JANSSON_LIBRARIES})
|
||||||
|
|
||||||
|
if(WITH_ASAN AND ASAN_FOUND)
|
||||||
|
target_link_libraries(maxavro ${ASAN_LIBRARIES})
|
||||||
|
endif()
|
||||||
|
|
||||||
add_executable(maxavrocheck maxavrocheck.c)
|
add_executable(maxavrocheck maxavrocheck.c)
|
||||||
target_link_libraries(maxavrocheck maxavro)
|
target_link_libraries(maxavrocheck maxavro)
|
||||||
install_executable(maxavrocheck core)
|
install_executable(maxavrocheck core)
|
||||||
|
|||||||
@ -54,12 +54,6 @@ add_library(maxscale-common SHARED
|
|||||||
workertask.cc
|
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
|
target_link_libraries(maxscale-common
|
||||||
${MARIADB_CONNECTOR_LIBRARIES}
|
${MARIADB_CONNECTOR_LIBRARIES}
|
||||||
${LZMA_LINK_FLAGS}
|
${LZMA_LINK_FLAGS}
|
||||||
@ -80,6 +74,10 @@ target_link_libraries(maxscale-common
|
|||||||
${MICROHTTPD_LIBRARIES}
|
${MICROHTTPD_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(WITH_ASAN AND ASAN_FOUND)
|
||||||
|
target_link_libraries(maxscale-common ${ASAN_LIBRARIES})
|
||||||
|
endif()
|
||||||
|
|
||||||
find_library(HAVE_LIBDL NAMES dl)
|
find_library(HAVE_LIBDL NAMES dl)
|
||||||
if (HAVE_LIBDL)
|
if (HAVE_LIBDL)
|
||||||
# libdl just exposes libc functionality on most systems. This means that if
|
# libdl just exposes libc functionality on most systems. This means that if
|
||||||
|
|||||||
Reference in New Issue
Block a user