svn commit: r325443 - in head: . lib/libclang_rt share/mk

Ngie Cooper (yaneurabeya) yaneurabeya at gmail.com
Sun Nov 5 19:45:42 UTC 2017


> On Nov 5, 2017, at 11:38, Ngie Cooper <ngie at FreeBSD.org> wrote:
> 
> Author: ngie
> Date: Sun Nov  5 19:38:51 2017
> New Revision: 325443
> URL: https://svnweb.freebsd.org/changeset/base/325443
> 
> Log:
>  Fix paths for cross-built versions of lib/libclang_rt and hardfloat arm variants
> 
>  - Define TARGET_CPUARCH and use in libclang_rt as the basis for CRTARCH
> 
>    When cross-compiling, the wrong architecture was being embedded in the
>    libclang_rt binary filenames. It should be based on TARGET_ARCH (target), not
>    MACHINE_ARCH (host).
> 
>    If TARGET_ARCH isn't defined (host-builds), fallback to MACHINE_ARCH.
> 
>  - Define CRTARCH to armhf when TARGET/TARGET_ARCH are set to arm/armv[67]
> 
>    TARGET_ABI/TARGET_CPU in Makefile.inc1 sets the ABI to gnueabihf, which
>    affects the clang lookup path per `getArchNameForCompilerRTLib(..)` in
>    contrib/llvm/tools/clang/lib/Driver/ToolChain.cpp, so chase clang and
>    Linux's assumed naming convention for hard-float arm architectures.
> 
>    CROSSENV (in Makefile.inc1) sets CPUTYPE/MACHINE(_ARCH)? to the
>    TARGET*-relevant values when building the `libraries` target, so test
>    those variables instead.
> 
>  - Add OLD_FILES/OLD_LIBS entries for TARGET/TARGET_ARCH == arm/armv[67]. This
>    impacts only arm/armv6 and arm/armv7.
> 
>  PR:	222925

MFC after:	2 weeks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20171105/4ed35704/attachment.sig>


More information about the svn-src-head mailing list