summaryrefslogtreecommitdiffstats
path: root/package/libdnet/libdnet-002-python-makefile.patch
blob: fb41e43e351107dfe6e8dbc24e50da7762f827b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
 python/Makefile.am |    1 +
 1 file changed, 1 insertion(+)

Index: libdnet-1.11/python/Makefile.am
===================================================================
--- libdnet-1.11.orig/python/Makefile.am
+++ libdnet-1.11/python/Makefile.am
@@ -11,6 +11,7 @@
 	pyrexc $(srcdir)/dnet.pyx
 
 python-build: $(srcdir)/dnet.c
+	CC="$(CC)" LDSHARED="$(CC) -shared" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" $(PYTHON) setup.py build_ext -I$(PYINCDIR) -L$(PYLIBDIR)
 	$(PYTHON) setup.py build
 	touch python-build