瀏覽代碼

glibc: only disable pie for sparc64, it breaks mips f.e.

Waldemar Brodkorb 11 月之前
父節點
當前提交
97d262c578
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      toolchain/glibc/Makefile

+ 6 - 1
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