From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7337 invoked from network); 19 Aug 2020 21:00:32 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 19 Aug 2020 21:00:32 -0000 Received: (qmail 22266 invoked by uid 550); 19 Aug 2020 21:00:27 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 22248 invoked from network); 19 Aug 2020 21:00:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mforney-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4ogSJjbnxymUOSXZLgYiJnaj9rDvUsVlB0zEV2/00k4=; b=vvwqe5jXeDYokgwf8W7qIlyPnxVUWxmUgPXef61NLLW/BPluGulEZsTJ1pJwI+8lUu YYHyDwFKEUYMHjsfKpwxg+PP/RndY/podEWGnsc0lxTOafRk3bD9LkGjYF0POuCRS/ia Zu2Njr65iFEzv9KqSXppt9P9D00AVNbIKgh/TY2+QkSlD22CPvyOpLX4lQqD5RqX1d/m giu6I5WEwXiuiBn8hSQTJ6mUPfyPA/yz37n2pndlgpjftHE5Pv8xTT4JkHuhzYkcR1uW yPEDPBPrtcmZwBETU0pLS/zfaEnFyriYegxhqNEoK+mRH+AWvUoO/j3nSl3x23/h5yem +8FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4ogSJjbnxymUOSXZLgYiJnaj9rDvUsVlB0zEV2/00k4=; b=DjDA00/WHTNsboku5ytDXtwBr047FeChmh2AZ7NRn2HYxUyWeNMalWqZbyEMCeEVmN wG6u0knP479W1kf2hMuRDmVs7QiC0lz3BX5u2NzAnmKr5cCQYoCacI2z0FBT9IYTEsRi VDcNGHNPuoceu6ryJOTGwMc1rsjd1cwujg/SdMTJw6+nSfm2xDpY/rTdKgsPHKI/63ox ehmADW0SsXfGDXu6xKGibksVO6pdgLtsSVL6Q9qoypY+Fga9soM2WEtE36RAS1HyIqIe Kf+Uv3YDBy9C2qiO2Dxo+4YpdwvWp7+FogDZg5RD+HmYPyuPLcArHnJoe1f5S4y8ovr4 ydYg== X-Gm-Message-State: AOAM532M2iCHPE7JBj6PWe6rT2gajf2aXZZ3Gvsszi5cDj9fox4UgEQY u25upKaZ5X9NND4TnsZje8v8Ir4dxUWX22N6pDePDg== X-Google-Smtp-Source: ABdhPJyoqPBUeWk/ErgeVMpHdJXmf9dRHJIOJGB9uD9lh/LKh4YztNUpv5Bs2KITAzSQZpmIKBFdYODpBQdD8wttd50= X-Received: by 2002:a6b:e603:: with SMTP id g3mr21585132ioh.180.1597870814893; Wed, 19 Aug 2020 14:00:14 -0700 (PDT) MIME-Version: 1.0 X-Originating-IP: [73.70.188.119] In-Reply-To: <20200510163555.GU21576@brightrain.aerifal.cx> References: <20181107064957.1137-1-mforney@mforney.org> <20200323043456.13327-1-mforney@mforney.org> <20200510163555.GU21576@brightrain.aerifal.cx> From: Michael Forney Date: Wed, 19 Aug 2020 14:00:13 -0700 Message-ID: To: Rich Felker Cc: musl@lists.openwall.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [musl] Re: [musl-cross-make] [PATCH v2] litecross: Fix system header dir when building native toolchains On 2020-05-10, Rich Felker wrote: > I'll try to get back to this sometime soon, but at the moment my focus > is already split several ways between mallocng, initial entropy source > and csprng issues for musl (was considered a prereq for merging > mallocng but I think it's turning out to be mostly separate which may > mean I can punt on this for a while), bringing this all together for > next musl release, and paid work independent from musl. Now that musl 1.2.1 is out, can we revisit this? To make sure we're on the same page, do you agree that if I build a musl-cross-make toolchain with NATIVE=1, and install it to some arbitrary directory $TOOLCHAIN, then the following is true? 1. The musl headers are located in $TOOLCHAIN/include. 2. $TOOLCHAIN/bin/gcc should include the directory containing musl headers somewhere in its header search path. 3. $TOOLCHAIN/usr does not exist, so it is not useful to search for headers in $TOOLCHAIN/usr/include The only effect of my patch is to add $TOOLCHAIN/include to the header search path of $TOOLCHAIN/bin/gcc and remove $TOOLCHAIN/usr/include from the header search path of $TOOLCHAIN/bin/gcc, correcting points 2 and 3 above.