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
This commit is contained in:
Tim Burke 2017-04-21 15:17:20 -07:00
parent a9b20ae6a3
commit b5ad3290c2
1 changed files with 1 additions and 1 deletions

View File

@ -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