diff options
author | Dariusz Michaluk <d.michaluk@samsung.com> | 2019-01-29 15:25:08 +0100 |
---|---|---|
committer | Dariusz Michaluk <d.michaluk@samsung.com> | 2019-02-25 13:57:57 +0100 |
commit | 14e94dc420fdc4eb2a39f8f06f5320b97cc1d6b7 (patch) | |
tree | 017a5ab102946f79cc20e8af5c8cd5d2655e6161 | |
parent | 59c2799ace667fe952f68a5f0aa4ba9ca1e5523d (diff) | |
download | libwebappenc-14e94dc420fdc4eb2a39f8f06f5320b97cc1d6b7.tar.gz libwebappenc-14e94dc420fdc4eb2a39f8f06f5320b97cc1d6b7.tar.bz2 libwebappenc-14e94dc420fdc4eb2a39f8f06f5320b97cc1d6b7.zip |
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
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | build/libwebappenc.pc.in | 2 |
2 files changed, 1 insertions, 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@ |