Skip to content

Commit 4862598

Browse files
committed
Add lmdb.pc for MacOS
1 parent f9b89ad commit 4862598

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/haskell.yml

+2
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ jobs:
153153
run: |
154154
brew install libsodium
155155
brew install lmdb
156+
# LMDB is distributed without pkg-config file
157+
cp $(pwd)/.github/workflows/lmdb.pc /usr/local/lib/pkgconfig/lmdb.pc
156158
157159
- name: "MAC: Install build environment (secp256k1)"
158160
if: matrix.os == 'macos-latest'

.github/workflows/lmdb.pc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
prefix=/usr/local
2+
exec_prefix=${prefix}
3+
libdir=${exec_prefix}/lib
4+
includedir=${exec_prefix}/include
5+
6+
Name: liblmdb
7+
Description: Lightning Memory-Mapped Database
8+
URL: https://symas.com/products/lightning-memory-mapped-database/
9+
Version: 0.9.29
10+
Libs: -L${libdir} -llmdb
11+
Cflags: -I${includedir}

0 commit comments

Comments
 (0)