Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jul 2014 14:55:48 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        Baptiste Daroussin <bapt@FreeBSD.org>, sbruno@FreeBSD.org, Ian Lepore <ian@FreeBSD.org>, freebsd-arch@FreeBSD.org
Subject:   Re: Total confusion over toolchain/xdev behavior
Message-ID:  <AAE2384D-1F15-47C4-BE2C-D5207150C335@bsdimp.com>
In-Reply-To: <A7CE5DAD-C093-4E09-B048-A2CDC51DB0E0@FreeBSD.org>
References:  <1404688077.1059.115.camel@bruno> <1404766292.65432.43.camel@revolution.hippie.lan> <20B72004-1499-4F99-A7C7-13173C50C7C6@bsdimp.com> <20140707235237.GG97203@ivaldir.etoilebsd.net> <DB29AF3B-C761-4112-A4F6-6CF20159C2E1@bsdimp.com> <B94CB4F3-FA56-4B17-A4DD-A6F28F521A9C@bsdimp.com> <67272C53-1908-454A-8E74-14D9A2EA0828@FreeBSD.org> <C6150667-388D-4091-975F-A8BD16FD5625@bsdimp.com> <A2E7E324-C885-4D84-8928-86F5926C0434@bsdimp.com> <A7CE5DAD-C093-4E09-B048-A2CDC51DB0E0@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]

On Jul 8, 2014, at 11:36 AM, Dimitry Andric <dim@freebsd.org> wrote:

> On 08 Jul 2014, at 18:23, Warner Losh <imp@bsdimp.com> wrote:
>> 
>> On Jul 8, 2014, at 9:04 AM, Warner Losh <imp@bsdimp.com> wrote:
>> 
>>> 
>>> On Jul 8, 2014, at 12:56 AM, Dimitry Andric <dim@FreeBSD.org> wrote:
>>> 
>>>> On 08 Jul 2014, at 03:56, Warner Losh <imp@bsdimp.com> wrote:
>>>> 
>>>>> 
>>>>> On Jul 7, 2014, at 7:29 PM, Warner Losh <imp@bsdimp.com> wrote:
>>>>>> 
>>>>>> About the rest… Yea, you may be right….  MK_GNUCXX is an odd duck, and that’s
>>>>>> likely the problem that should be fixed in a different way. It is really an internal
>>>>>> variable that should be set based on the actual compiler type (possibly with an
>>>>>> override for the odd-duck pair of clang and libstdc++ which may not be worth
>>>>>> supporting). It is telling us we’re doing something horribly wrong and we should listen
>>>>>> to that rather than add another compiler-related kludge to the build system.  I’ll work
>>>>>> on that bit.
>>>>> 
>>>>> Perhaps
>>>>> 	http://people.freesbd.org/~imp/patch-queue/86gnucxx
>>>>> might be the best way to cope…
>>>>> 
>>>>> Comments?
>>>> 
>>>> This would make it impossible to build libstdc++ with clang, and why remove MK_GNUCXX at all[1]?
>>> 
>>> Because it is a silly option that’s mostly an internal knob? We don’t need to support options that trip us up at every turn, and MK_GNUCXX has been doing that since its introduction.
>> 
>> Also, in the current tree it means different things in different places. In some places it says to build libstdc++, in other places it says to build g++ and friends.
> 
> This was an oddity introduced by theraven@ in r255321, where he introduced MK_GNUCXX, but I have no idea why he conflated the two.  Before this commit, I had a local patch which simply added an option disabling or enabling libstdc++ and libsupc++ (and nothing else).  I should have committed that first... :)

Wish you had :) I’ve taken various stabs at this since your feedback on my initial change w/o being happy with the result. Will keep trying.

> In any case, it would be nice to still have the option to enable building libstdc++, whatever the used compiler is.

Agreed. I’ll make sure that you can specify this. I just get picky about names and meanings :) Is it a requirement to build both libstdc++ and libcxxrt or can it be either/or?

Warner

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJTvFrUAAoJEGwc0Sh9sBEA5mQQALMPzrLYnZmPzIQ1wiFndsh+
JE5/vGPXlCpJ0TOile4H/WF44qmqFT+vRuj8Ckix1gw5tsXp3oVdj2uMZMD1Plzd
/EdtuXkNZiyXqQCv2QL59O73P1XgYJUcA7spr8pEBnKlnHOWhE0zR4hmol0JTfwS
8s1HVv4Kb+EuY4Ccoot3cH2oZH0T/LYS1MCvt7YsV1rWYiJGX8DIGkzD3CF5g3xS
YmfIXaYMnzBV180rjtW7zYPHzjJu1kqhYo8ommTakX3YgXJ5gRGfQzhgrAAkojIR
sroK2O9EQl/w8u54L7Yr0gmicqyyAi3C5FLFimqrWmpJH5ZQbyXM+auLLWunO4jW
ylPcWYfyCk4iKkV5StM9sM6+NiHlvwWsRiOz8BRQaIk0eeSAfzi0ePoTgSLEpVuA
N8NZUVerj5uelNIpnuqabL+ZgsaeQ4R50k7qrxBVdR2gVwB/TBYbtcYdwidM3+Uc
08Pifh1RKGJaCAAlwSj59/+AHOuVb8yjlZIWInGeqOFSkskjHsOoXomaFTFdNnzf
fbay7ZUcrOhdfN4zXDgAefex28nr+A9m6I87Yz7dVY0JSt1hbCjuxGbKc1WDQLw/
OJIXHbEcKIvzZCe8Y/JvOvgQAbntXAn1I1r6yVLEZQXP7dv/C50PVe8msvF3N0se
nQqMwnwFWVDkxWPDRg/o
=M157
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AAE2384D-1F15-47C4-BE2C-D5207150C335>