summaryrefslogtreecommitdiffstats
path: root/ffi/lang/python
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-03-22 16:21:03 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-03-22 16:21:03 +0100
commitc36dbe6eb447239824f0014ec6beae2df9f42a7c (patch)
tree62c0655c362b82b340f3084bee1d0a9ccdab8a8a /ffi/lang/python
parent6a9e2743d149fecd5d7706b273dc69a45fe25ea2 (diff)
Fix build on macOS.
- Use GNU install, use the correct extension for dynamic libraries. - Fixes #226.
Diffstat (limited to 'ffi/lang/python')
-rw-r--r--ffi/lang/python/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/ffi/lang/python/Makefile b/ffi/lang/python/Makefile
index 78a9481e..f398c0c2 100644
--- a/ffi/lang/python/Makefile
+++ b/ffi/lang/python/Makefile
@@ -9,7 +9,12 @@ CFLAGS += -I../../include -I../../../openpgp-ffi/include
PYTHON ?= python3
IPYTHON ?= ipython3
PYTEST ?= pytest-3
-INSTALL ?= install
+ifeq ($(shell uname -s), Darwin)
+ INSTALL ?= ginstall
+else
+ INSTALL ?= install
+endif
+
CARGO_TARGET_DIR ?= ../../../target