From b5ad3290c244a9b124fdb86974616ffd681bec6c Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Fri, 21 Apr 2017 15:17:20 -0700 Subject: [PATCH] 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 --- erasurecode.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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