From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by sourceware.org (Postfix) with ESMTPS id 0880A38654AD for ; Fri, 18 Aug 2023 23:05:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0880A38654AD Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-317b31203c7so1227680f8f.2 for ; Fri, 18 Aug 2023 16:05:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692399901; x=1693004701; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=p91Xq/+cXSHL+qjeSfy9fttHzx2rw0wJ8TDhN6Srzts=; b=mJUIrqKinTVcbZsNP4Yu8C6CKGJ/WNOEi7HL9AUfADab0KWe8kfG1EgHq5dkYQebRu BynlF+vE5sZi6vGysSDSzG8KuLnogTp1vZcuLv2nV/FP+CDkhCnUT3QaVfUCMMAfPnOm tlDMdH7ZcFoSnsUlAwn9AR4BYcGR+PhHDUIvPyGNQZWv1wHnuJSHYWg5P7X7YlI9961j NhQtxrMip1bgR9m1L/Blf0ozBpnH/1V8RuPQRNDohhucomRxJxaSLImj4bI6AMXl/Wi5 F9oKWTpRxIaGnYmtHwDVSz/WQ5Q2+o+cUodGzbEzlvbVfxxn2Q58T7BSs5mlym6b1e8a KmAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692399901; x=1693004701; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p91Xq/+cXSHL+qjeSfy9fttHzx2rw0wJ8TDhN6Srzts=; b=iYRhsc0sQxLM/R2ArDvSKEJ1vEk+mU+T1AgYDy/7oIGW1nQ+jRFUhpOe3FbCb5aHCm 8zDqsbRm4cW8HK6PVOddceiJO6yEcUdTaKVZDQI86WLiS5Qh78oqptS2Wrw4YPzKiaXj LwVmiDlk58lf3R1BsHrMovC4Qo7XGANP6RBA/FWi7w5ipzq97dAxqqE1Hpruoir34Rcl ncQFjQeXy6sOlsWoPmqFxhP+SS2NCkxHBIhmMJNVoXZa9V0QoVwdg26u3K6qu225Dcwr EgPyzNrQg3VyvyCFa2/Gg6HHGZOyJI1AjfuT/HGBBl0hj6wXxlxrUHYjK1XT34qoHND1 /FFQ== X-Gm-Message-State: AOJu0YzbK6a0JLTxV+/K5WX5pHXY2o9EtYoott50E1yUyqxigDiB6IXM eA7ebrUcD1pPcvdLesKAdYU= X-Google-Smtp-Source: AGHT+IGV1c2T52/qSrO+jHf3cDvaz9f7GyECqeu2+ILEKUOEboMQ+PlGxMLPNhDoHiZyREFNpqLIEg== X-Received: by 2002:a5d:58d9:0:b0:31a:d344:38eb with SMTP id o25-20020a5d58d9000000b0031ad34438ebmr380090wrf.45.1692399901212; Fri, 18 Aug 2023 16:05:01 -0700 (PDT) Received: from smtpclient.apple (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id y17-20020adfe6d1000000b003176eab8868sm4161784wrm.82.2023.08.18.16.05.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Aug 2023 16:05:00 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.4\)) Subject: Re: Darwin: Replace environment runpath with embedded [PR88590] From: Iain Sandoe In-Reply-To: <90b5a66c-55cd-a98c-fc3b-25368cbc9ed1@codesourcery.com> Date: Sat, 19 Aug 2023 00:05:00 +0100 Cc: FX Coudert , GCC Patches Content-Transfer-Encoding: quoted-printable Message-Id: References: <92993a50-9667-45da-a62-5089e7e052f8@codesourcery.com> <192597CA-AB73-4D97-94B8-C30B8AC1FFC3@gmail.com> <90b5a66c-55cd-a98c-fc3b-25368cbc9ed1@codesourcery.com> To: Joseph Myers X-Mailer: Apple Mail (2.3696.120.41.1.4) X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP 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: > On 18 Aug 2023, at 23:59, Joseph Myers = wrote: >=20 > On Fri, 18 Aug 2023, Iain Sandoe via Gcc-patches wrote: >=20 >> There is quite extensive Apple Developer documentation on delivering=20= >> packages with co-installed libraries using @rpath (that is the = intended=20 >> mechanism for delivery since it allows drag-and-drop installation and=20= >> moving of built applications). >>=20 >> The revised compiler has libraries already built in a suitable manner=20= >> for that distribution model. >>=20 >> I would not propose that we repeated such information - but we could=20= >> refer to it? >>=20 >> Generally, I=E2=80=99d prefer we suggested searching for such = documentation,=20 >> rather than linking to it, since links can expire - does that seem=20 >> reasonable? >=20 > I suppose the key thing is to note that, if building a program for=20 > distribution, you shouldn't build it to embed=20 > /path/to/compiler/install/lib, but instead should do possibly referring to relevant Apple documentation>. right, exactly - there are special runpath roots like @executable_path = and @loader_path that provide for packages that are fully relocatable (we actually use some of this to allow GCC runtimes to find their dependent runtimes without needing an absolute runpath). OK. We just need to find a suitable place to put this - perhaps in = documenting -nodefaultrpaths (since that=E2=80=99s usually used together with = specifying something different). thanks, Iain >=20 > --=20 > Joseph S. Myers > joseph@codesourcery.com