1- From bcf130f097781d162c0461105a12f4c9f412d3e8 Mon Sep 17 00:00:00 2001
2- From: Angelos Kolaitis <angelos.kolaitis@canonical .com>
3- Date: Tue, 20 Feb 2024 12:32:27 +0200
1+ From 7b7171f0f5048225e0d914cbffd47295af1fbfc5 Mon Sep 17 00:00:00 2001
2+ From: Lucian Petrut <lpetrut@cloudbasesolutions .com>
3+ Date: Fri, 28 Mar 2025 13:14:34 +0000
44Subject: [PATCH] Disable static PIE on arm64
55
66Ubuntu does not currently have the rcrt1.o file on arm64
@@ -9,17 +9,18 @@ Ubuntu does not currently have the rcrt1.o file on arm64
99 1 file changed, 1 insertion(+), 1 deletion(-)
1010
1111diff --git a/Makefile b/Makefile
12- index e3af9bc1..b2b07720 100644
12+ index 0a15fd90..d7e6209a 100644
1313--- a/Makefile
1414+++ b/Makefile
15- @@ -33 ,7 +33 ,7 @@ LDFLAGS_STATIC := -extldflags -static
15+ @@ -45 ,7 +45 ,7 @@ LDFLAGS_STATIC := -extldflags -static
1616 # Enable static PIE executables on supported platforms.
1717 # This (among the other things) requires libc support (rcrt1.o), which seems
1818 # to be available only for arm64 and amd64 (Debian Bullseye).
1919- ifneq (,$(filter $(GOARCH),arm64 amd64))
2020+ ifneq (,$(filter $(GOARCH),amd64))
2121 ifeq (,$(findstring -race,$(EXTRA_FLAGS)))
2222 GO_BUILDMODE_STATIC := -buildmode=pie
23- LDFLAGS_STATIC := -linkmode external -extldflags --static-pie
24- - -
25- 2.34.1
23+ LDFLAGS_STATIC := -linkmode external -extldflags -static-pie
24+ - -
25+ 2.43.0
26+
0 commit comments