libxt: fix _XtInherit

This commit is contained in:
Matheus
2026-06-27 13:28:31 -03:00
parent 0a0e26837e
commit 847b3b7875
2 changed files with 25 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
diff --git libxt-clean/src/Initialize.c libxt-workdir/src/Initialize.c
index 8ae54b4..d0f0968 100644
--- libxt-clean/src/Initialize.c
+++ libxt-workdir/src/Initialize.c
@@ -197,7 +197,7 @@ _XtInherit(void)
#define _XtInherit __XtInherit
#endif
-#if defined (WIN32) || defined(__CYGWIN__)
+#if defined (WIN32) || defined(__CYGWIN__) || defined(__astral__)
/*
* The Symbol _XtInherit is used in two different manners.
* First it could be used as a generic function and second
@@ -246,8 +246,8 @@ _XtInherit(void)
* cygwin-xfree: http://www.cygwin.com/ml/cygwin-xfree/2003-10/msg00000.html
*/
-#ifdef __x86_64__
-asm(".section .trampoline, \"dwx\" \n\
+#if defined(__x86_64__)
+asm(".section .trampoline, \"awx\", @progbits \n\
.globl _XtInherit \n\
_XtInherit: \n\
jmp *_y(%rip) \n\
+1 -1
View File
@@ -1,5 +1,5 @@
name=libxt name=libxt
revision=1 revision=2
from_source=libxt from_source=libxt
imagedeps="meson ninja-build build-essential" imagedeps="meson ninja-build build-essential"
hostdeps="xgcc xbinutils pkgconfig util-macros" hostdeps="xgcc xbinutils pkgconfig util-macros"