1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From: Anton Gladky <gladk@debian.org>
Date: Feb, 05 2026 18:01:53 +0100
Subject: Respect CPPFLAGS
--- wmbusmeters-1.20.0.orig/Makefile
+++ wmbusmeters-1.20.0/Makefile
@@ -130,6 +130,7 @@ endif
$(info Building $(VERSION))
FUZZFLAGS ?= -DFUZZING=false
+CPPFLAGS ?=
CXXFLAGS ?= $(EXTRA_CXXFLAGS) $(DEBUG_FLAGS) $(FUZZFLAGS) -fPIC -std=c++11 -Wall -Werror=format-security -Wno-unused-function
# Additional fedora rpm package build flags
# -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
@@ -150,12 +151,12 @@ ifeq ($(shell uname -s),Darwin)
endif
$(BUILD)/%.o: src/%.cc $(wildcard src/%.h)
- $(CXX) $(CXXFLAGS) $< -c -E > $@.src
- $(CXX) $(CXXFLAGS) $< -MMD -c -o $@
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $< -c -E > $@.src
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $< -MMD -c -o $@
$(BUILD)/%.o: src/%.c $(wildcard src/%.h)
- $(CXX) -I/usr/include/libxml2 $(CXXFLAGS) $< -c -E > $@.src
- $(CXX) -I/usr/include/libxml2 -fpermissive $(CXXFLAGS) $< -MMD -c -o $@
+ $(CXX) $(CPPFLAGS) -I/usr/include/libxml2 $(CXXFLAGS) $< -c -E > $@.src
+ $(CXX) $(CPPFLAGS) -I/usr/include/libxml2 -fpermissive $(CXXFLAGS) $< -MMD -c -o $@
PROG_OBJS:=\
$(BUILD)/address.o \
|