Source: gcc-8 Version: 8-20180218-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap Control: block 666743 by -1
While working on coinstallable toolchains I ran into another problem. When we want to install two native toolchains for different architectures, we also want two native binutils for these architectures. Thus /usr/bin/as is ambiguous and must not be used. Thus a triplet-prefixed compiler must not use plain as or plain ld, but that's what happens when you configure gcc for a native build. The attached patch adds the --with-as and --with-ld options pointing to the triplet-prefixed versions of these tools such that we can later switch the binutils dependency to binutils-$targettriplet. I hope I found the right place to insert these options. Helmut
--- a/debian/rules2 +++ b/debian/rules2 @@ -184,7 +184,9 @@ CONFARGS += \ --enable-languages=$(subst $(SPACE),$(COMMA),$(enabled_languages)) \ --prefix=/$(PF) \ - --with-gcc-major-version-only + --with-gcc-major-version-only \ + --with-as=/usr/bin/$(DEB_TARGET_GNU_TYPE)-as \ + --with-ld=/usr/bin/$(DEB_TARGET_GNU_TYPE)-ld ifeq ($(versioned_packages),yes) CONFARGS += --program-suffix=-$(BASE_VERSION)