From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from elaine.keithp.com (home.keithp.com [63.227.221.253]) by sourceware.org (Postfix) with ESMTPS id B8F76385DC16 for ; Thu, 25 Aug 2022 17:38:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B8F76385DC16 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=keithp.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=keithp.com Received: from localhost (localhost [127.0.0.1]) by elaine.keithp.com (Postfix) with ESMTP id 5EE763F3030D; Thu, 25 Aug 2022 10:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=keithp.com; s=mail; t=1661449095; bh=a8CwRHKOl+kTafTNjvpLxpsNEOTIhrS3NWLe1iN4MYQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=R+C9R+UHC8Xi1Le0ZotxdPjhf3uRc1lKD42tDHNFR2rp9VmaDxyxEblkMcUUL9QPi dAIoLUlxMnRVH5g94mmim2c+crlxKl8jznfhV2wry7mkQNA5mQ6zNai138I5nMiMkJ DDdzSA0RsHnEVq6zpA+y1Oc5wE/NcAD/mLji0XlNE3AVj/SA17qHzTCEhBzlA8Rs6r bzMCJ06zmOHGOo6vQeADE9WE7pZM1wujdQI3Xf0aL6umubq2OjvTD+pTopC3uHn86a N6piXvszJSP21TXYsm9M5kNUn5WsUaIZusH8n8KEO7a6taawEThEQgR5WzN673WUvH IzC5M5awXfcKg== X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from elaine.keithp.com ([127.0.0.1]) by localhost (elaine.keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MkUskM4EYBAk; Thu, 25 Aug 2022 10:38:14 -0700 (PDT) Received: from keithp.com (koto.keithp.com [192.168.11.2]) by elaine.keithp.com (Postfix) with ESMTPSA id D9E7A3F3030A; Thu, 25 Aug 2022 10:38:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=keithp.com; s=mail; t=1661449094; bh=a8CwRHKOl+kTafTNjvpLxpsNEOTIhrS3NWLe1iN4MYQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ODjrq82b7fs2S9ArCqW1gQE6Gy2Ru5p2SlK/M4qgrSxYpA9ce3D0MwNmKSzBntqad VfJhxwP6cvtTm4UgP5AgYKRrgfhOetRtuynjaF9IKzXEr2Zvux4pugfEfYTvgH8WTU sDM8nZMTFTfdEg+X4gbDNfGDqEz7nrNKKTb1x7OpI8FFKXGpsLib1p64etKfz34/41 kxUQeljl5mT38nxK8zL9vWu/N0sx86peBfWkaNIN7sgL0N/uIDEzAEs1B5BmyuyNvg dahzX6aSBGHgOF+H1uPnB7ND97D8ZGpPBVLj5DKjrMPshNBhx7o5Xv4SlUpgWmzrOJ Ec8Y9/2Ss4ftA== Received: by keithp.com (Postfix, from userid 1000) id 6271A1E601CB; Thu, 25 Aug 2022 10:38:14 -0700 (PDT) From: Keith Packard To: Kito Cheng Cc: Andrew Pinski , GCC Patches Subject: Re: [PATCH 0/3] picolibc: Add picolibc linking help In-Reply-To: References: <20220824180426.820576-1-keithp@keithp.com> <87a67ta14r.fsf@keithp.com> Date: Thu, 25 Aug 2022 10:38:14 -0700 Message-ID: <87v8qg8bqx.fsf@keithp.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Kito Cheng writes: > I am thinking that maybe we should add > -mlibc=3D[newlib|newlib-nano|picolibc|unknown] option to bare-matel > toolchain, one reason is having an unify interface to select libc > implementation between clang/LLVM, spec file is a GCC specific stuff, > that cause very bad compatibility between GCC and clang/LLVM, and > having option to control that would be better since clang/LLVM don't > have those configure time option. You can create specs file for each library so that you select the library with --specs=3Dpicolibc.specs or --specs=3Dnewlib-nano.specs. That seems sufficient as you can mess with various compiler options and set the header paths. Crosstool-ng does this and it enables delivering newlib, newlib-nano and picolibc in the same toolchain. =2D-=20 =2Dkeith --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAmMHs4YACgkQ2yIaaQAA ABFt5Q/+PgzAT+FVIjrecv2Xj4VzzSB49PUQzoSoQRaXCiznBi8EBInCXHU13G9Z Pc/i7KCXKZlba7gIR4SQiQkmXcXxDsh5s+narm8hCqD5aBQpCns9Pbu4meGm+hfC 9MisRy+8FMwbQ8JcAGv9Y46pv/OsNM/fqoRzg7kCC4WxvUSfGUkjR92kVPDTXU05 sQ2Ck7p+6nh04HUTP5nnSye5B+HpPI/nzJPIKNumYQ4kY7mxoH3AFpKA5nPH6JNW TZ9oNJ6E2rDcOvJbbp8CEjsPVzAe+CHK3kegKzzLvQnEW1sEgRn2bzxSqh/7Fusj 2qgd46fcE+Ap1/QcMtQWncOGrunfq56ms+Iah5oVBcb0m6hYyKEAbdHadnNlvsj4 /0PdHKEE3pDh8t0luPMy0muIq304ZzqO9SD8XZmax/Fl3Ajvz1EaoSv32FzXsfJ2 2lJm5lsq6BJp3LG0vWVikQyd9dNPOYYSJfTZRRq84Uy/KlaGQd51TQ0/bQsPgybY w1wu8rDlUWF4H+s3xrypViJ1tHK2tvuLdL2vbXaH/LDRh9gxqycl2Md+CaUGcxs4 I5uf1CdqXR4avgP6F9ji09bCKZ8iqpGZvOWqCQsUrtOeG+nK3XreNrW8Ayv6u4dI /2vMvhbUSC9X5CVP3UkNptM9Z/xZHN3lO78deIQLQ/rrkA7Nvow= =+NfM -----END PGP SIGNATURE----- --=-=-=--