From: Dariusz Michaluk Date: Tue, 29 Jan 2019 14:25:08 +0000 (+0100) Subject: Remove unnecessary dependencies X-Git-Tag: submit/tizen/20190515.153334~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F90%2F198790%2F3;p=platform%2Fcore%2Fsecurity%2Flibwebappenc.git 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 --- 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@