miniupnpc/miniupnpc-makefile.patch

23 lines
646 B
Diff

--- Makefile.orig 2011-06-21 17:24:14.000000000 +0200
+++ Makefile 2011-12-23 17:54:49.000000000 +0100
@@ -12,7 +12,9 @@
CC ?= gcc
#AR = gar
#CFLAGS = -O -Wall -g -DDEBUG
-CFLAGS ?= -O -Wall -DNDEBUG -DMINIUPNPC_SET_SOCKET_TIMEOUT -Wstrict-prototypes
+OPTFLAGS = -O
+CFLAGS ?= -O -Wall -DNDEBUG -DMINIUPNPC_SET_SOCKET_TIMEOUT -Wstrict-prototypes $(OPTFLAGS)
+PYTHON = python
# -DNO_GETADDRINFO
INSTALL = install
SH = /bin/sh
@@ -103,7 +105,7 @@
everything: all $(EXECUTABLES_ADDTESTS)
pythonmodule: $(LIBRARY) miniupnpcmodule.c setup.py
- python setup.py build
+ $(PYTHON) setup.py build
touch $@
installpythonmodule: pythonmodule