1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Description: Honor CPPFLAGS when building the Python module
Forwarded: https://github.com/rpm-software-management/deltarpm/pull/21
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2026-01-05
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,7 @@
PYCFLAGS=`$$PY-config --cflags`; \
if [ ! -f "python$$PYVER/$@" ]; then \
mkdir -p python$$PYVER ;\
- $(CC) $(CFLAGS) $$PYCFLAGS $(zlibcppflags) -fPIC -c -o python$$PYVER/deltarpmmodule.o deltarpmmodule.c ;\
+ $(CC) $(CPPFLAGS) $(CFLAGS) $$PYCFLAGS $(zlibcppflags) -fPIC -c -o python$$PYVER/deltarpmmodule.o deltarpmmodule.c ;\
$(CC) $(LDFLAGS) -o python$$PYVER/$@ python$$PYVER/deltarpmmodule.o $^ -shared -Wl,-soname,_deltarpmmodule.so $(LDLIBS); \
fi; \
fi; \
|