Package: src:gcc-mingw-w64
Version: 29
Severity: wishlist
Tags: patch

Unfortunately, build and target flags are set in the environment, and not passed on the shell, and not seen in the build log. Please change that, or at least print these out in the build log (patch attached for the latter).

--- debian/rules~	2026-09-19 18:51:14.000000000 +0200
+++ debian/rules	2026-09-22 08:27:37.108156649 +0200
@@ -280,6 +280,10 @@
 
 # 32- and 64-bit targets are split: 32-bit uses Dwarf2, 64-bit the default SEH
 override_dh_auto_configure: debian/control mingw-w64-patch-stamp $(top_dir)/bin/gnat
+	@echo "Build flags used for the build:"
+	@echo -e $(foreach flag,$(BUILDFLAGS), '  $(flag) = $($(flag))\n')
+	@echo "Target flags used for the build:"
+	@echo -e $(foreach flag,$(BUILDFLAGS), '  $(flag)_FOR_TARGET = $($(flag)_FOR_TARGET)\n')
 	set -e; \
 	cp $(upstream_dir)/gcc/BASE-VER.orig $(upstream_dir)/gcc/BASE-VER || \
 	cp $(upstream_dir)/gcc/BASE-VER $(upstream_dir)/gcc/BASE-VER.orig; \

Reply via email to