From: ecordonnier@snap.com
To: yocto-patches@lists.yoctoproject.org
Cc: Dominik Schnitzer <dominik@snap.com>,
Etienne Cordonnier <ecordonnier@snap.com>
Subject: [meta-darwin][PATCH 1/2] gcc: rely on loader_path instead of rpath
Date: Tue, 27 May 2025 15:24:14 +0200 [thread overview]
Message-ID: <20250527132415.2160472-1-ecordonnier@snap.com> (raw)
From: Dominik Schnitzer <dominik@snap.com>
"--disable-darwin-at-rpath" causes the "loader_path" to be used instead of the "rpath" for finding libraries.
This allows to use the SDK without calling the relocate script which is changing the rpath values (LC_RPATH on MacOS).
Also add "Signed-off-by" line to aarch64-Darwin patch.
Before:
```
$ llvm-objdump -p ./sysroots/x86_64-pokysdk-darwin21/usr/bin/clang-18 | grep -A2 -i libstdc++
name @loader_path/../lib/libstdc++.6.dylib (offset 24)
```
After:
```
$ llvm-objdump -p ./sysroots/x86_64-pokysdk-darwin21/usr/bin/clang-18 | grep -A2 libstdc++
name @rpath/libstdc++.6.dylib (offset 24)
```
Signed-off-by: Dominik Schnitzer <dominik@snap.com>
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
---
.../gcc/files/0101-aarch64-Darwin-support-gcc-13-3-darwin.patch | 1 +
recipes-devtools/gcc/gcc-runtime_%.bbappend | 1 +
2 files changed, 2 insertions(+)
diff --git a/recipes-devtools/gcc/files/0101-aarch64-Darwin-support-gcc-13-3-darwin.patch b/recipes-devtools/gcc/files/0101-aarch64-Darwin-support-gcc-13-3-darwin.patch
index 4599f52..23d36b3 100644
--- a/recipes-devtools/gcc/files/0101-aarch64-Darwin-support-gcc-13-3-darwin.patch
+++ b/recipes-devtools/gcc/files/0101-aarch64-Darwin-support-gcc-13-3-darwin.patch
@@ -6,6 +6,7 @@ Upstream-Status: Pending
aarch64 Darwin support for GCC 13.3 from:
https://github.com/iains/gcc-13-branch/
+Signed-off-by: Iain Sandoe <iains@gcc.gnu.org>
Signed-off-by: Dominik Schnitzer <dominik@snap.com>
---
diff --git a/recipes-devtools/gcc/gcc-runtime_%.bbappend b/recipes-devtools/gcc/gcc-runtime_%.bbappend
index 7f61e92..ce9dd1f 100644
--- a/recipes-devtools/gcc/gcc-runtime_%.bbappend
+++ b/recipes-devtools/gcc/gcc-runtime_%.bbappend
@@ -1,5 +1,6 @@
EXTRA_OECONF:remove:darwin21 = "--enable-clocale=gnu"
EXTRA_OECONF:remove:darwin21 = "--enable-clocale=generic"
+EXTRA_OECONF:append:darwin21 = " --disable-darwin-at-rpath"
RUNTIMETARGET:remove:darwin21 = "libmpx"
--
2.43.0
next reply other threads:[~2025-05-27 13:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-27 13:24 ecordonnier [this message]
2025-05-27 13:24 ` [meta-darwin][PATCH 2/2] arm64-darwin: use require to reduce duplication ecordonnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250527132415.2160472-1-ecordonnier@snap.com \
--to=ecordonnier@snap.com \
--cc=dominik@snap.com \
--cc=yocto-patches@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.