2023-06-09 18:45:27 +00:00
|
|
|
From 40c3d28f4d090fcd3486ca2a88d0c7618fdb03ed Mon Sep 17 00:00:00 2001
|
2020-08-21 10:18:02 +00:00
|
|
|
From: Ariadne Conill <ariadne@dereferenced.org>
|
2022-01-06 15:11:38 +00:00
|
|
|
Date: Thu, 6 Jan 2022 03:14:33 +0000
|
2023-05-29 16:47:58 +00:00
|
|
|
Subject: [PATCH 21/33] ppc64[le]: disable multilib support
|
2020-08-21 10:18:02 +00:00
|
|
|
|
2022-01-06 15:11:38 +00:00
|
|
|
multilib is not presently supported on Alpine GCC
|
2020-08-21 10:18:02 +00:00
|
|
|
---
|
2022-01-06 15:11:38 +00:00
|
|
|
gcc/config/rs6000/t-linux | 6 ++++--
|
|
|
|
gcc/config/rs6000/t-linux64 | 4 ++--
|
|
|
|
gcc/config/rs6000/t-linux64bele | 4 ++--
|
|
|
|
gcc/config/rs6000/t-linux64lebe | 4 ++--
|
|
|
|
4 files changed, 10 insertions(+), 8 deletions(-)
|
2020-08-21 10:18:02 +00:00
|
|
|
|
|
|
|
diff --git a/gcc/config/rs6000/t-linux b/gcc/config/rs6000/t-linux
|
2022-08-13 15:17:36 +00:00
|
|
|
index 4e371255533..128c75c7d39 100644
|
2020-08-21 10:18:02 +00:00
|
|
|
--- a/gcc/config/rs6000/t-linux
|
|
|
|
+++ b/gcc/config/rs6000/t-linux
|
2018-12-12 17:14:55 +00:00
|
|
|
@@ -2,7 +2,8 @@
|
|
|
|
# or soft-float.
|
|
|
|
ifeq (,$(filter $(with_cpu),$(SOFT_FLOAT_CPUS))$(findstring soft,$(with_float)))
|
|
|
|
ifneq (,$(findstring powerpc64,$(target)))
|
|
|
|
-MULTILIB_OSDIRNAMES := .=../lib64$(call if_multiarch,:powerpc64-linux-gnu)
|
|
|
|
+MULTILIB_OSDIRNAMES := m64=../lib
|
|
|
|
+MULTILIB_OSDIRNAMES += m32=../lib32
|
|
|
|
else
|
2020-08-21 10:18:02 +00:00
|
|
|
MULTIARCH_DIRNAME := $(call if_multiarch,powerpc-linux-gnu)
|
|
|
|
endif
|
|
|
|
@@ -10,7 +11,8 @@ ifneq (,$(findstring powerpcle,$(target)))
|
2018-12-12 17:14:55 +00:00
|
|
|
MULTIARCH_DIRNAME := $(subst -linux,le-linux,$(MULTIARCH_DIRNAME))
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring powerpc64le,$(target)))
|
|
|
|
-MULTILIB_OSDIRNAMES := $(subst -linux,le-linux,$(MULTILIB_OSDIRNAMES))
|
|
|
|
+MULTILIB_OSDIRNAMES := m64=../lib
|
|
|
|
+MULTILIB_OSDIRNAMES += m32=../lib32
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2020-08-21 10:18:02 +00:00
|
|
|
diff --git a/gcc/config/rs6000/t-linux64 b/gcc/config/rs6000/t-linux64
|
2023-05-15 08:15:31 +00:00
|
|
|
index 01a94242308..b3a76379c03 100644
|
2020-08-21 10:18:02 +00:00
|
|
|
--- a/gcc/config/rs6000/t-linux64
|
|
|
|
+++ b/gcc/config/rs6000/t-linux64
|
2018-12-12 17:14:55 +00:00
|
|
|
@@ -28,8 +28,8 @@
|
|
|
|
MULTILIB_OPTIONS := m64/m32
|
|
|
|
MULTILIB_DIRNAMES := 64 32
|
|
|
|
MULTILIB_EXTRA_OPTS :=
|
|
|
|
-MULTILIB_OSDIRNAMES := m64=../lib64$(call if_multiarch,:powerpc64-linux-gnu)
|
|
|
|
-MULTILIB_OSDIRNAMES += m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)$(call if_multiarch,:powerpc-linux-gnu)
|
|
|
|
+MULTILIB_OSDIRNAMES := m64=../lib
|
|
|
|
+MULTILIB_OSDIRNAMES += m32=../lib32
|
|
|
|
|
2022-08-13 15:17:36 +00:00
|
|
|
rs6000-linux.o: $(srcdir)/config/rs6000/rs6000-linux.cc
|
2018-12-12 17:14:55 +00:00
|
|
|
$(COMPILE) $<
|
2020-08-21 10:18:02 +00:00
|
|
|
diff --git a/gcc/config/rs6000/t-linux64bele b/gcc/config/rs6000/t-linux64bele
|
|
|
|
index 97c1ee6fb4d..08d72639cb6 100644
|
|
|
|
--- a/gcc/config/rs6000/t-linux64bele
|
|
|
|
+++ b/gcc/config/rs6000/t-linux64bele
|
2018-12-12 17:14:55 +00:00
|
|
|
@@ -2,6 +2,6 @@
|
|
|
|
|
|
|
|
MULTILIB_OPTIONS += mlittle
|
|
|
|
MULTILIB_DIRNAMES += le
|
|
|
|
-MULTILIB_OSDIRNAMES += $(subst =,.mlittle=,$(subst lible32,lib32le,$(subst lible64,lib64le,$(subst lib,lible,$(subst -linux,le-linux,$(MULTILIB_OSDIRNAMES))))))
|
|
|
|
-MULTILIB_OSDIRNAMES += $(subst $(if $(findstring 64,$(target)),m64,m32).,,$(filter $(if $(findstring 64,$(target)),m64,m32).mlittle%,$(MULTILIB_OSDIRNAMES)))
|
|
|
|
+MULTILIB_OSDIRNAMES = m64=../lib
|
|
|
|
+MULTILIB_OSDIRNAMES+= m32=../lib32
|
|
|
|
MULTILIB_MATCHES := ${MULTILIB_MATCHES_ENDIAN}
|
2020-08-21 10:18:02 +00:00
|
|
|
diff --git a/gcc/config/rs6000/t-linux64lebe b/gcc/config/rs6000/t-linux64lebe
|
|
|
|
index 2e63bdb9fc9..c6e1c5db65d 100644
|
|
|
|
--- a/gcc/config/rs6000/t-linux64lebe
|
|
|
|
+++ b/gcc/config/rs6000/t-linux64lebe
|
2018-12-12 17:14:55 +00:00
|
|
|
@@ -2,6 +2,6 @@
|
|
|
|
|
|
|
|
MULTILIB_OPTIONS += mbig
|
|
|
|
MULTILIB_DIRNAMES += be
|
|
|
|
-MULTILIB_OSDIRNAMES += $(subst =,.mbig=,$(subst libbe32,lib32be,$(subst libbe64,lib64be,$(subst lib,libbe,$(subst le-linux,-linux,$(MULTILIB_OSDIRNAMES))))))
|
|
|
|
-MULTILIB_OSDIRNAMES += $(subst $(if $(findstring 64,$(target)),m64,m32).,,$(filter $(if $(findstring 64,$(target)),m64,m32).mbig%,$(MULTILIB_OSDIRNAMES)))
|
|
|
|
+MULTILIB_OSDIRNAMES := m64=../lib
|
|
|
|
+MULTILIB_OSDIRNAMES += m32=../lib32
|
|
|
|
MULTILIB_MATCHES := ${MULTILIB_MATCHES_ENDIAN}
|
2023-05-15 08:15:31 +00:00
|
|
|
--
|
2023-06-09 18:45:27 +00:00
|
|
|
2.41.0
|
2023-05-15 08:15:31 +00:00
|
|
|
|