From 67ac784f75dad79a7b1da6d4c91e950da733e0d6 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 30 Dec 2020 15:17:49 -0800 Subject: [PATCH] auc: link to libdl when needed Fixes compilation under glibc. Signed-off-by: Rosen Penev --- utils/auc/Makefile | 2 +- utils/auc/src/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/auc/Makefile b/utils/auc/Makefile index 0b44d0e5d7..40cb6d1851 100644 --- a/utils/auc/Makefile +++ b/utils/auc/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=auc PKG_VERSION:=0.1.4 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_LICENSE:=GPL-3.0 include $(INCLUDE_DIR)/package.mk diff --git a/utils/auc/src/CMakeLists.txt b/utils/auc/src/CMakeLists.txt index ce291a4e34..de6cee8334 100644 --- a/utils/auc/src/CMakeLists.txt +++ b/utils/auc/src/CMakeLists.txt @@ -8,5 +8,5 @@ SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") find_library(json NAMES json-c json) ADD_EXECUTABLE(auc auc.c) -TARGET_LINK_LIBRARIES(auc uci ubox ubus uclient blobmsg_json ${json}) +TARGET_LINK_LIBRARIES(auc uci ubox ubus uclient blobmsg_json ${json} ${CMAKE_DL_LIBS}) INSTALL(TARGETS auc RUNTIME DESTINATION sbin) -- 2.30.2