From 14e94dc420fdc4eb2a39f8f06f5320b97cc1d6b7 Mon Sep 17 00:00:00 2001 From: Dariusz Michaluk Date: Tue, 29 Jan 2019 15:25:08 +0100 Subject: Remove unnecessary dependencies Do not expose unnecessary libraries to the program that is linking with libwebappenc library. If the program will not be using the symbols of the required library, it should not be linking directly to that library. pkg-config guide: https://people.freedesktop.org/~dbn/pkg-config-guide.html Change-Id: I6ad22fb8e57edf5c59216db2670520711bf66568 --- CMakeLists.txt | 1 - build/libwebappenc.pc.in | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 436eb74..27a4fee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,7 +75,6 @@ PKG_CHECK_MODULES(WEB_APP_ENC_DEPS ############################ For PC file setting ################################ SET(PC_NAME lib${PROJECT_NAME}) -SET(PC_REQUIRED ${DEPENDENTS}) SET(PC_LDFLAGS -l${PROJECT_NAME}) #SET(PC_CFLAGS -I\${includedir}) diff --git a/build/libwebappenc.pc.in b/build/libwebappenc.pc.in index b530dcf..e86fde8 100644 --- a/build/libwebappenc.pc.in +++ b/build/libwebappenc.pc.in @@ -5,6 +5,6 @@ includedir=@PREFIX@/include Name: @PC_NAME@ Description: Web application encryption and decryption service based on key-manager Version: @VERSION@ -Requires: @PC_REQUIRED@ +Requires: Libs: @PC_LDFLAGS@ Cflags: @PC_CFLAGS@ -- cgit v1.2.3