From: Felix Fietkau Date: Sun, 9 Oct 2011 16:57:42 +0000 (+0200) Subject: add a variable for overriding the libnl linker command X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=be8f32edac81aa4d5c24c1cfa109c23c48827997 add a variable for overriding the libnl linker command --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 461c07c..a6e228a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,9 +19,13 @@ SET(SOURCES SET(LIBS ubox ubus uci json blobmsg_json) +IF (NOT DEFINED LIBNL_LIBS) + SET(LIBNL_LIBS -lnl) +ENDIF() + IF("${CMAKE_SYSTEM_NAME}" MATCHES "Linux" AND NOT DUMMY_MODE) SET(SOURCES ${SOURCES} system-linux.c) - SET(LIBS ${LIBS} nl) + SET(LIBS ${LIBS} ${LIBNL_LIBS}) ELSE() ADD_DEFINITIONS(-DDUMMY_MODE=1) SET(SOURCES ${SOURCES} system-dummy.c)