You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/boost/files/boost-1.79.0-context-x32.patch

46 lines
1.3 KiB

https://github.com/boostorg/context/pull/247
From 922e033fa1464e506c82a0d6980103268f7197cf Mon Sep 17 00:00:00 2001
From: David Seifert <soap@gentoo.org>
Date: Tue, 23 Jan 2024 13:23:29 +0100
Subject: [PATCH] Fix x32 build on x86-64
--- a/libs/context/src/asm/jump_i386_sysv_elf_gas.S
+++ b/libs/context/src/asm/jump_i386_sysv_elf_gas.S
@@ -24,6 +24,10 @@
* *
****************************************************************************************/
+#ifdef __x86_64__
+#include "jump_x86_64_sysv_elf_gas.S"
+#else
+
.file "jump_i386_sysv_elf_gas.S"
.text
.globl jump_fcontext
@@ -91,3 +95,5 @@ jump_fcontext:
/* Mark that we don't need executable stack. */
.section .note.GNU-stack,"",%progbits
+
+#endif
--- a/libs/context/src/asm/make_i386_sysv_elf_gas.S
+++ b/libs/context/src/asm/make_i386_sysv_elf_gas.S
@@ -24,6 +24,10 @@
* *
****************************************************************************************/
+#ifdef __x86_64__
+#include "make_x86_64_sysv_elf_gas.S"
+#else
+
.file "make_i386_sysv_elf_gas.S"
.text
.globl make_fcontext
@@ -111,3 +115,5 @@ finish:
/* Mark that we don't need executable stack. */
.section .note.GNU-stack,"",%progbits
+
+#endif