Merge pull request #14378 from neheb/a

auc: link to libdl when needed
This commit is contained in:
Rosen Penev 2020-12-30 18:35:15 -08:00 committed by GitHub
commit 791bade75a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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)