]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libclang_rt: enable on powerpc*
authorDimitry Andric <dim@FreeBSD.org>
Sat, 23 Nov 2019 19:35:09 +0000 (19:35 +0000)
committerDimitry Andric <dim@FreeBSD.org>
Sat, 23 Nov 2019 19:35:09 +0000 (19:35 +0000)
commit1bb8eb56ef2a2116347106c2df381e7d6801f328
treecdfc821aec6e132d22b87b3dc21b9b636bb9f21b
parentbe252a414fcb69b1e19f16cf39e54066a1a13442
libclang_rt: enable on powerpc*

Summary:
Enable on powerpc64 and in lib/libclang_rt/Makefile change
MACHINE_CPUARCH to MACHINE_ARCH because on powerpc64
MACHINE_ARCH==MACHINE_CPUARCH so the 32-bit library overwrites 64-bit
library during installworld.

This patch doesn't enable any other libclang_rt libraries because they
need to be separately ported.

I have verified that games/julius (which fails on powerpc64 elfv2
without this change because of no libclang_rt profiling library) builds.

Test Plan: Ship it, test on powerpc and powerpcspe

Submitted by: pkubaj
Reviewed by: dim, jhibbits
Differential Revision: https://reviews.freebsd.org/D22425
MFC after: 1 month
X-MFC-With: r353358
lib/Makefile
lib/libclang_rt/Makefile.inc
tools/build/mk/OptionalObsoleteFiles.inc