From 7e7b2865c9b12175b03ab26f17859861016ff60f Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Thu, 13 Jul 2023 19:54:18 +0200 Subject: [PATCH] scdoc: update don't add -static to LDFLAGS to fix /usr/lib/gcc/x86_64-poky-linux/13.1.1/../../../../x86_64-poky-linux/bin/ld: cannot find -lc: No such file or directory --- ...-Makefile-dont-add-static-to-LDFLAGS.patch | 25 +++++++++++++++++++ recipes-extended/scdoc/scdoc_git.bb | 3 ++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 recipes-extended/scdoc/scdoc/0001-Makefile-dont-add-static-to-LDFLAGS.patch diff --git a/recipes-extended/scdoc/scdoc/0001-Makefile-dont-add-static-to-LDFLAGS.patch b/recipes-extended/scdoc/scdoc/0001-Makefile-dont-add-static-to-LDFLAGS.patch new file mode 100644 index 0000000..32577ae --- /dev/null +++ b/recipes-extended/scdoc/scdoc/0001-Makefile-dont-add-static-to-LDFLAGS.patch @@ -0,0 +1,25 @@ +From 2cac433806d9622dbc005fe5738f1ae8c33a98cb Mon Sep 17 00:00:00 2001 +From: Markus Volk +Date: Thu, 13 Jul 2023 19:26:40 +0200 +Subject: [PATCH] Makefile: dont add -static to LDFLAGS + +Signed-off-by: Markus Volk +--- + Makefile | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 60a80b8..49021fa 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,7 +1,6 @@ + VERSION=1.11.2 + CFLAGS?=-g + MAINFLAGS:=-DVERSION='"$(VERSION)"' -Wall -Wextra -Werror -Wno-unused-parameter +-LDFLAGS+=-static + INCLUDE+=-Iinclude + PREFIX?=/usr/local + BINDIR?=$(PREFIX)/bin +-- +2.39.3 + diff --git a/recipes-extended/scdoc/scdoc_git.bb b/recipes-extended/scdoc/scdoc_git.bb index 159d9bb..224e541 100644 --- a/recipes-extended/scdoc/scdoc_git.bb +++ b/recipes-extended/scdoc/scdoc_git.bb @@ -7,13 +7,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=31752b4a8edd3fb9ddba1cb90fada74d" SRC_URI = " \ git://git.sr.ht/~sircmpwn/scdoc;protocol=https;branch=master \ + file://0001-Makefile-dont-add-static-to-LDFLAGS.patch \ " DEPENDS = "scdoc-native" S = "${WORKDIR}/git" PV = "1.11.2" -SRCREV = "4af1e1e3a8ebfddcc11a189254d60fc4ad74cd59" +SRCREV = "afeda241f3f9b2c27e461f32d9c2a704ab82ef61" EXTRA_OEMAKE:class-native = "PREFIX=${prefix}" EXTRA_OEMAKE:class-target = "PREFIX=${prefix} HOST_SCDOC=${STAGING_BINDIR_NATIVE}/scdoc"