diff options
author | dim <dim@FreeBSD.org> | 2012-05-07 17:13:36 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-05-07 17:13:36 +0000 |
commit | 66daa7f73f48d38f5311353ab936d0395de10047 (patch) | |
tree | a8b0d57b53904abb37a3559feeea81ad73622fce /share/mk/bsd.own.mk | |
parent | 6837ff0b32489b2f513213151aa1afc7057d83af (diff) | |
download | FreeBSD-src-66daa7f73f48d38f5311353ab936d0395de10047.zip FreeBSD-src-66daa7f73f48d38f5311353ab936d0395de10047.tar.gz |
Revert r234656, and apply a proper fix for binutils PR 10474, which
caused linking clang on 32-bit PowerPC to fail with "relocation
truncated to fit: R_PPC_REL24" errors.
Original diffs (relicensed under GPLv2 with permission from author):
http://sourceware.org/git/?p=binutils.git;a=commit;h=1fd262ff7d7ea5adf4894c6b960e092e7e43e3cd
http://sourceware.org/git/?p=binutils.git;a=commit;h=053c49fbff58bd33bd0d12200ea61302f92caceb
Tested by: andreast
MFC after: 1 week
Diffstat (limited to 'share/mk/bsd.own.mk')
-rw-r--r-- | share/mk/bsd.own.mk | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index b0acbfd..6b5180a 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -442,8 +442,7 @@ __T=${TARGET_ARCH} __T=${MACHINE_ARCH} .endif # Clang is only for x86 and powerpc right now, by default. -# XXX: Temporarily disabled for 32-bit powerpc, due to a binutils bug. -.if ${__T} == "amd64" || ${__T} == "i386" || ${__T} == "powerpc64" +.if ${__T} == "amd64" || ${__T} == "i386" || ${__T:Mpowerpc*} __DEFAULT_YES_OPTIONS+=CLANG .else __DEFAULT_NO_OPTIONS+=CLANG |