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:
Khem Raj
2023-08-31 22:35:18 -07:00
parent 05e32934d0
commit 87ae6f0c22
2 changed files with 42 additions and 0 deletions
@@ -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-dhcpcd.conf \
file://enable-iwd.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" SRC_URI[sha256sum] = "edca09637d182f806b3b12d8c5623d7badbd73ccca1ae63be20d2f298779fb9f"