Pick up SDKROOT as the sysroot fallback.

Jack Howarth howarth.at.macports at gmail.com
Sun Oct 13 17:20:02 UTC 2019


Shouldn't that also strip out...

    if {${configure.sdkroot} ne ""} {
        # We should be using --with-build-sysroot here.  Using
--with-sysroot
        # changes the behavior of the installed gcc to look in that sysroot
        # by default instead of /.  Using --with-build-sysroot is supposed
        # to be used during the build but not impact the installed product.
        # Unfortunately, the build fails because the value doesn't get
        # plumbed everywhere it is supposed to.
        #
        # https://trac.macports.org/ticket/53726
        # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79885
        configure.args-append --with-sysroot="${configure.sdkroot}"
    }

so that if path to an Xcode-beta.app is selected in xcode-select it is
honored?
            Jack

On Sun, Oct 13, 2019 at 1:00 PM Christopher Jones <jonesc at hep.phy.cam.ac.uk>
wrote:

>
>
> https://github.com/macports/macports-ports/commit/1850136d289019f3b29a5b24d3ec8ef9b23913ee
>
> Chris
>
> On 13 Oct 2019, at 5:49 pm, Kenneth F. Cunningham <
> ken.cunningham.webuse at gmail.com> wrote:
>
> Chris,
>      FYI, this has already been committed upstream.
> https://gcc.gnu.org/ml/gcc-cvs/2019-10/msg00148.html
>
>       Jack
>
>
> Yes, this plan is coming along nicely -- some of us know how this came to pass :> I sent that link to Josh a while back when it came out, as support for passing the SYSROOT in base, so it's been floating around a while.
>
>
> After this, a couple of older gccs maybe, and then that covers most of our toolchain.
>
>
> Then we begin stripping all the baked-in -isysroot stuff out of installed ports, which is just plain bad. (And prevents, for example, reliably building against an alternate SDK, amongst other heartburn).
>
>
> Ken
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20191013/c26d8a5e/attachment.html>


More information about the macports-dev mailing list