From 6927b503b160cc309884deacf544e45fda9d5b8f Mon Sep 17 00:00:00 2001 From: "drenfong.wang" Date: Thu, 28 Feb 2019 02:15:10 +0000 Subject: fix rpm package plugins cannot load Change-Id: Id5f488ce575491023d2f38b6799ee562b8188259 Signed-off-by: drenfong.wang --- README.md | 2 +- src/plugins/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 69d907e..de45d3a 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Firstly, please follow below steps to install dependencies and build code: make install-dep-extra make install-vpp make build-scvpp - make build + make build-plugins Then, please start each daemon one by one: start vpp (for example on Ubuntu: systemctl start vpp) diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index 08003f7..a412d0b 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -49,7 +49,7 @@ set(BAPI_SRC ) add_library(bapi SHARED ${BAPI_SRC}) target_include_directories(bapi PUBLIC ${VPP_INCLUDE_DIRS} ./bapi) -target_link_libraries(bapi ${VPP_LIBRARIES}) +target_link_libraries(bapi ${SCVPP_LIBRARIES}) # plugins sources set(PLUGINS_SOURCES @@ -64,7 +64,7 @@ set(PLUGINS_SOURCES # build the source code into shared library add_library(vpp-plugins SHARED ${PLUGINS_SOURCES}) -target_link_libraries(vpp-plugins ${SYSREPO_LIBRARIES} ${SCVPP_LIBRARIES} bapi) +target_link_libraries(vpp-plugins bapi) # install the plugin into plugins dir install(TARGETS vpp-plugins DESTINATION ${SR_PLUGINS_DIR}) -- cgit 1.2.3-korg