summaryrefslogtreecommitdiff
path: root/toolchain/glibc/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-06-13 13:53:04 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2024-06-13 13:53:04 +0200
commit97d262c5783d9c7d7060f4c13ff059249dcbe461 (patch)
tree8572d7bee7578501ff75556efef313338c2219e3 /toolchain/glibc/Makefile
parent57569bf68cd964c8446a2cdf666445d60be057bc (diff)
glibc: only disable pie for sparc64, it breaks mips f.e.
Diffstat (limited to 'toolchain/glibc/Makefile')
-rw-r--r--toolchain/glibc/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/toolchain/glibc/Makefile b/toolchain/glibc/Makefile
index 873622c71..4d87f5789 100644
--- a/toolchain/glibc/Makefile
+++ b/toolchain/glibc/Makefile
@@ -22,9 +22,14 @@ GLIBC_CONFOPTS:= --build=$(GNU_HOST_NAME) \
--disable-sanity-checks \
--disable-werror \
--disable-nscd \
- --disable-default-pie \
--enable-shared
+ifeq ($(ADK_TARGET_LINUX_ARCH_SPARC64),y)
+GLIBC_CONFOPTS+= --disable-default-pie
+else
+GLIBC_CONFOPTS+= --enable-default-pie
+endif
+
ifeq ($(ADK_TARGET_USE_STATIC_LIBS_ONLY),y)
GLIBC_CONFOPTS+= --enable-static-nss
endif