:: commit 89b0e11cc4ea17ae702d7ad41fc89040227454b8

Mintsuki <mintsuki@protonmail.com> — 2025-07-24 02:15

parents: f8a87dbfb2

build: Remove --no-dynamic-linker and -static flags for compat

diff --git a/common/common.mk b/common/common.mk
index 3a3e9836..5fb5dca4 100644
--- a/common/common.mk
+++ b/common/common.mk
@@ -185,27 +185,21 @@ endif
 ifeq ($(TARGET),uefi-x86-64)
     override LDFLAGS_FOR_TARGET += \
         -m elf_x86_64 \
-        -static \
         -pie \
-        --no-dynamic-linker \
         -z text
 endif
 
 ifeq ($(TARGET),uefi-ia32)
     override LDFLAGS_FOR_TARGET += \
         -m elf_i386 \
-        -static \
         -pie \
-        --no-dynamic-linker \
         -z text
 endif
 
 ifeq ($(TARGET),uefi-aarch64)
     override LDFLAGS_FOR_TARGET += \
         -m aarch64elf \
-        -static \
         -pie \
-        --no-dynamic-linker \
         -z text
 endif
 
@@ -213,9 +207,7 @@ ifeq ($(TARGET),uefi-riscv64)
     override LDFLAGS_FOR_TARGET += \
         -m elf64lriscv \
         --no-relax \
-        -static \
         -pie \
-        --no-dynamic-linker \
         -z text
 endif
 
@@ -223,9 +215,7 @@ ifeq ($(TARGET),uefi-loongarch64)
     override LDFLAGS_FOR_TARGET += \
         -m elf64loongarch \
         --no-relax \
-        -static \
         -pie \
-        --no-dynamic-linker \
         -z text
 endif
 
tab: 248 wrap: offon