Bug#881939: gcc: disable D when cross build native GCC
Package: src:gcc-7
Version: 7.2.0-16
When we build native GCC with the cross gcc, D will always fails.
So please disable D in this condition.
@@ -891,6 +926,12 @@ ifeq ($(with_base_only),yes
with_d := no
endif
+ifneq ($(DEB_BUILD_ARCH), $(DEB_HOST_ARCH))
+ifeq ($(DEB_HOST_ARCH), $(DEB_TARGET_ARCH))
+ with_d := no
+endif
+endif
+
ifeq ($(with_d)-$(with_separate_gdc),yes-yes)
ifneq (,$(findstring gdc,$(PKGSOURCE)))
languages := c c++
--
YunQiang Su
Reply to: