Bug#881939: gcc: disable D when cross build native GCC
On 16 November 2017 at 20:34, YunQiang Su <wzssyqa@gmail.com> wrote:
> 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++
>
Out of interest, why/how does it fail?
Iain.
Reply to: