summaryrefslogtreecommitdiffstats
path: root/debian/patches/hurd-multiarch.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:58:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:58:36 +0000
commit1d3b23e6bdbf53eb74161c37d8c355c2ec858a19 (patch)
treee279a67ec4f447e99b0754e7964666f7b48b5c05 /debian/patches/hurd-multiarch.diff
parentAdding upstream version 14-20240201. (diff)
downloadgcc-14-1d3b23e6bdbf53eb74161c37d8c355c2ec858a19.tar.xz
gcc-14-1d3b23e6bdbf53eb74161c37d8c355c2ec858a19.zip
Adding debian version 14-20240201-3.debian/14-20240201-3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/hurd-multiarch.diff')
-rw-r--r--debian/patches/hurd-multiarch.diff16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/hurd-multiarch.diff b/debian/patches/hurd-multiarch.diff
new file mode 100644
index 0000000..d814c6e
--- /dev/null
+++ b/debian/patches/hurd-multiarch.diff
@@ -0,0 +1,16 @@
+--- a/src/gcc/config/i386/t-gnu64 2023-05-06 22:43:39.395795420 +0200
++++ b/src/gcc/config/i386/t-gnu64 2023-05-06 22:43:39.395795420 +0200
+@@ -36,3 +36,13 @@
+ MULTILIB_OSDIRNAMES = m64=../lib64$(call if_multiarch,:x86_64-gnu)
+ MULTILIB_OSDIRNAMES+= m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)$(call if_multiarch,:i386-gnu)
+ MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-gnux32)
++
++ifneq (,$(findstring x86_64,$(target)))
++ ifneq (,$(findstring biarchx32.h,$(tm_include_list)))
++ MULTIARCH_DIRNAME = $(call if_multiarch,x86_64-gnux32)
++ else
++ MULTIARCH_DIRNAME = $(call if_multiarch,x86_64-gnu)
++ endif
++else
++ MULTIARCH_DIRNAME = $(call if_multiarch,i386-gnu)
++endif