Description: Use build flags from the environment
 The Debian build passes the default build flags through CFLAGS, CXXFLAGS,
 CPPFLAGS, and LDFLAGS. Import them into qmake so the generated Makefile
 uses the compiler and linker flags provided by dpkg-buildflags.
Author: Alex Myczko <tar@debian.org>
Bug-Debian: https://bugs.debian.org/1119542
Forwarded: no
Last-Update: 2026-05-16

Index: qwinff-0.2.1+git20201215/src/qwinff.pro
===================================================================
--- qwinff-0.2.1+git20201215.orig/src/qwinff.pro
+++ qwinff-0.2.1+git20201215/src/qwinff.pro
@@ -9,6 +9,10 @@ QT       += core gui network opengl
 TARGET = qwinff
 TEMPLATE = app
 
+QMAKE_CFLAGS += $$(CPPFLAGS) $$(CFLAGS)
+QMAKE_CXXFLAGS += $$(CPPFLAGS) $$(CXXFLAGS)
+QMAKE_LFLAGS += $$(LDFLAGS)
+
 SOURCES += main.cpp \
     ui/progressbar.cpp \
     ui/mainwindow.cpp \
