mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-03 02:10:04 +00:00
networkmanager: Fix build on musl
musl does not need _IO_stdin_used, since its not provided by toolchain runtime ( crt files ) lld linker complains about undefined global symbol on musl Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+41
@@ -0,0 +1,41 @@
|
||||
From 3ee6967689b3da30cc4551885d8bcdd44a7a9b52 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 31 Aug 2023 21:16:55 -0700
|
||||
Subject: [PATCH] linker-scripts: Do not export _IO_stdin_used
|
||||
|
||||
This is glibc specific and it is not needed with musl.
|
||||
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835550
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
linker-script-binary.ver | 1 -
|
||||
tools/create-exports-NetworkManager.sh | 1 -
|
||||
2 files changed, 2 deletions(-)
|
||||
|
||||
diff --git a/linker-script-binary.ver b/linker-script-binary.ver
|
||||
index a2780c0..f030d35 100644
|
||||
--- a/linker-script-binary.ver
|
||||
+++ b/linker-script-binary.ver
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
global:
|
||||
- _IO_stdin_used;
|
||||
local:
|
||||
*;
|
||||
};
|
||||
diff --git a/tools/create-exports-NetworkManager.sh b/tools/create-exports-NetworkManager.sh
|
||||
index ef4b381..60865ad 100755
|
||||
--- a/tools/create-exports-NetworkManager.sh
|
||||
+++ b/tools/create-exports-NetworkManager.sh
|
||||
@@ -54,7 +54,6 @@ get_symbols_nm () {
|
||||
|
||||
get_symbols_explicit() {
|
||||
cat <<EOF | _sort
|
||||
-_IO_stdin_used
|
||||
EOF
|
||||
}
|
||||
|
||||
--
|
||||
2.42.0
|
||||
|
||||
@@ -31,6 +31,7 @@ SRC_URI = " \
|
||||
file://enable-dhcpcd.conf \
|
||||
file://enable-iwd.conf \
|
||||
"
|
||||
SRC_URI:append:libc-musl = " file://0001-linker-scripts-Do-not-export-_IO_stdin_used.patch"
|
||||
|
||||
SRC_URI[sha256sum] = "edca09637d182f806b3b12d8c5623d7badbd73ccca1ae63be20d2f298779fb9f"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user