summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2017-04-21 15:17:20 -0700
committerTim Burke <tim.burke@gmail.com>2017-07-13 13:26:00 -0700
commitb5ad3290c244a9b124fdb86974616ffd681bec6c (patch)
tree1249715d130fb9dce6bc680a6ceeb1735ddf7b4b
parenta9b20ae6a38073afe91ae2b7d789ddfb7dabade8 (diff)
Add dl to pkg-config metadata
This simplifies compiling by allowing users to include CFLAGS += `pkg-config --cflags erasurecode-1` LDFLAGS += `pkg-config --libs erasurecode-1` in makefiles. Otherwise, trying to use pkg-config results in errors like /usr/local/lib/liberasurecode.so: undefined reference to `dlopen' /usr/local/lib/liberasurecode.so: undefined reference to `dlclose' /usr/local/lib/liberasurecode.so: undefined reference to `dlerror' /usr/local/lib/liberasurecode.so: undefined reference to `dlsym' collect2: error: ld returned 1 exit status Change-Id: I39fb137b1a3b6b2beda1d0b28faef3132229ec3b
Notes
Notes (review): Code-Review+2: Timur Alperovich <timur.alperovich@gmail.com> Workflow+1: Timur Alperovich <timur.alperovich@gmail.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Wed, 13 Sep 2017 20:23:43 +0000 Reviewed-on: https://review.openstack.org/458987 Project: openstack/liberasurecode Branch: refs/heads/master
-rw-r--r--erasurecode.pc.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/erasurecode.pc.in b/erasurecode.pc.in
index 175367c..148c382 100644
--- a/erasurecode.pc.in
+++ b/erasurecode.pc.in
@@ -10,6 +10,6 @@ Description: C library with pluggable erasure code backends
10Version: @LIBERASURECODE_VERSION@ 10Version: @LIBERASURECODE_VERSION@
11Requires: 11Requires:
12Conflicts: 12Conflicts:
13Libs: -L${libdir} -lerasurecode 13Libs: -L${libdir} -lerasurecode -ldl
14Libs.private: @ERASURECODE_STATIC_LIBS@ -lz 14Libs.private: @ERASURECODE_STATIC_LIBS@ -lz
15Cflags: -I${includedir}/ -I${includedir}/liberasurecode 15Cflags: -I${includedir}/ -I${includedir}/liberasurecode