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)
downloadliberasurecode-b5ad3290c244a9b124fdb86974616ffd681bec6c.tar.gz
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
-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
Version: @LIBERASURECODE_VERSION@
Requires:
Conflicts:
-Libs: -L${libdir} -lerasurecode
+Libs: -L${libdir} -lerasurecode -ldl
Libs.private: @ERASURECODE_STATIC_LIBS@ -lz
Cflags: -I${includedir}/ -I${includedir}/liberasurecode