summaryrefslogtreecommitdiffstats
path: root/src/dlfcn-win32.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2016-08-15 04:34:48 (GMT)
committerTony Theodore <tonyt@logyst.com>2016-08-15 04:34:48 (GMT)
commitd24662444c3d2e644b46f19517b8a85c24d41686 (patch)
tree2bf76d5ce40113fac82c386ea9e24e6bea7aeb45 /src/dlfcn-win32.mk
parentaa5d954867d43e72af760591006602bcb76fd2ac (diff)
downloadmxe-d24662444c3d2e644b46f19517b8a85c24d41686.zip
mxe-d24662444c3d2e644b46f19517b8a85c24d41686.tar.gz
mxe-d24662444c3d2e644b46f19517b8a85c24d41686.tar.bz2
dlfcn-win32: add pkg-config file
Diffstat (limited to 'src/dlfcn-win32.mk')
-rw-r--r--src/dlfcn-win32.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dlfcn-win32.mk b/src/dlfcn-win32.mk
index 5109815..e23904e 100644
--- a/src/dlfcn-win32.mk
+++ b/src/dlfcn-win32.mk
@@ -22,4 +22,13 @@ define $(PKG)_BUILD
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
$(MAKE) -C '$(1)' -j '$(JOBS)' test.exe testdll.dll
+
+ # create pkg-config file - mostly for psapi dependency
+ mkdir -p '$(PREFIX)/$(TARGET)/lib/pkgconfig'
+ (echo 'Name: $(PKG)'; \
+ echo 'Version: $($(PKG)_VERSION)'; \
+ echo 'Description: $(PKG)'; \
+ echo 'Libs: -ldl'; \
+ echo 'Libs.private: -lpsapi'; \
+ ) > '$(PREFIX)/$(TARGET)/lib/pkgconfig/dlfcn.pc'
endef