[PATCH] link libvalidate to uci

Rosen Penev rosenp at gmail.com
Wed Jan 6 20:14:31 EST 2021


Fixes ldd error:

Error relocating /lib/libvalidate.so: uci_free_context: symbol not found
Error relocating /lib/libvalidate.so: uci_lookup_ptr: symbol not found
Error relocating /lib/libvalidate.so: uci_alloc_context: symbol not found

Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
 CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 62de1d4..f25fc93 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,6 +43,7 @@ INSTALL(TARGETS lsbloader
 )
 
 ADD_LIBRARY(validate SHARED validate/validate.c)
+TARGET_LINK_LIBRARIES(validate uci)
 INSTALL(TARGETS validate
 	LIBRARY DESTINATION lib
 )
-- 
2.29.2




More information about the openwrt-devel mailing list