Date: Sat, 09 Dec 2017 22:56:42 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 224217] [patch] Fix cross build of base/ ports Message-ID: <bug-224217-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224217 Bug ID: 224217 Summary: [patch] Fix cross build of base/ ports Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: nwhitehorn@FreeBSD.org CC: freebsd-ports-bugs@FreeBSD.org Keywords: patch Created attachment 188675 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D188675&action= =3Dedit Fixes The attached patch fixes the build of the base/ ports and ports-mgmt/pkg via cross-build on systems without QEMU userland support. It does the following: - Set C*_FOR_BUILD variables that various GNU tools need for their native compiler in autoconf. - Set CPPFLAGS to include the sysroot flags so that code using the preproce= ssor by itself also gets the right headers. This fixes GCC's autoconf checks that override autoconf's AC_GET_HEADER macros to use cpp directly rather than the compiler. - Have a cross-built pkg(8) use the native system pkg to package itself rat= her than the new cross-built pkg, which of course is not executable. - Upgrade GCC to 6.3 from 5.4 - Change the vendor tag on base/gcc from portbld to unknown to fix some brokenness in its internal build system and match the cross-compiler instal= led by e.g. powerpc64-gcc. - Repair GCC's build system to pass CPPFLAGS around correctly and avoid conflation of host and build CPPFLAGS, which we require as a result of GCC's broken non-inclusion of -isystem =3D/usr/include by default unless a cross = root is present when building the cross-compiler. - Repair GCC's build system to set proper C*FLAGS for native tool builds. --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224217-13>