diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2016-06-15 23:58:03 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2016-06-15 23:58:03 +0000 |
commit | 07394091841ffac046b44b946254f6f8beb31adc (patch) | |
tree | 4fda9fe592267442bb91a73468aeb9d1dd14876f /Makefile | |
parent | d97607185a88881a10cca359d51b1bdf39331565 (diff) | |
download | src-07394091841ffac046b44b946254f6f8beb31adc.tar.gz src-07394091841ffac046b44b946254f6f8beb31adc.zip |
Fix native powerpc64 build of lib32 with in-tree GCC.
- This was broken by r300350 and r300885.
- Add some comments around the external GCC logic since it is spread out
and in need of some cleanup.
- The problem was that X_COMPILER_TYPE is always defined from CC->XCC's
default, so if /usr/bin/cc is GCC (as it is on native powerpc64) then
X_COMPILER_TYPE was getting GCC and triggering the external logic in
Makefile.libcompat. It was intended to always provide -isystem with
GCC since --sysroot is used into the lib32 sysroot which won't modify
the header path without the -isystem. The use of the libc++/std=c++11
override was only intended to be used for external compilers though
(more accurately GCC 4.8+ but that's a separate assumption to
cleanup). Apply the same logic from Makefile.inc1 to Makefile.libcompat
to only add the libc++ override when needed for external compilers.
Pointyhat to: bdrewery
Tested with: native ppc64 (swills), universe, ppc64 xtoolchain,
amd64 xtoolchain, sparc64 cross-build of ppc64 (host GCC 4.2)
Reported by: andreast, swills
Approved by: re (gjb)
Sponsored by: EMC / Isilon Storage Division
Notes
Notes:
svn path=/head/; revision=301939
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions