Bug#881939: gcc: disable D when cross build native GCC

2017-11-16 Thread YunQiang Su
On Thu, 16 Nov 2017 20:45:44 +0100 Iain Buclaw wrote: > On 16 November 2017 at 20:34, YunQiang Su 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 @@ i

Bug#881939: gcc: disable D when cross build native GCC

2017-11-16 Thread Iain Buclaw
On 16 November 2017 at 20:34, YunQiang Su 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

Bug#881939: gcc: disable D when cross build native GCC

2017-11-16 Thread YunQiang Su
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