[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#806479: gcc-5: please allow building cross compilers targeting x86 cpus without building hppa64 cross compilers



Source: gcc-5
Version: 5.2.1-26
Severity: minor
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap

Hi Matthias,

When building cross compilers targeting amd64, i386 or x32 by writing
the arch name to debian/target, the build process tries to build hppa64
cross compilers. This seems a bit odd to me and I'd rather have gcc-5
not build hppa64 cross compilers unless I ask it to do so. I am
proposing the attached patch which limits the hppa64 cross compiler to
native builds. Do you agree with that reasoning?

Helmut
--- a/debian/rules.defs
+++ b/debian/rules.defs
@@ -1349,7 +1349,11 @@

   # hppa64 build ----------------
   hppa64_no_snap := no
+  hppa64_archs := hppa
+  ifneq ($(DEB_CROSS),yes)
+    hppa64_archs += amd64 i386 x32
+  endif
-  ifneq (, $(filter $(DEB_TARGET_ARCH),hppa amd64 i386 x32))
+  ifneq (, $(filter $(DEB_TARGET_ARCH),$(hppa64_archs)))
     with_hppa64 := yes
   endif
   ifeq ($(hppa64_no_snap)-$(trunk_build),yes-yes)

Reply to: