Hi,
I was able to solve this with CFLAGS := $(shell dpkg-buildflags --get CFLAGS) LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) %: dh $@ override_dh_auto_configure: dh_auto_configure -- $(CMAKEFLAGS) \ -DCMAKE_C_FLAGS_RELWITHDEBINFO="$(CFLAGS)" \ -DCMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING="$(LDFLAGS)" which was suggested by Jakub Wilk on #debian-devel. Alas, my bug does not occur with -g -O0 :-) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org