mesa: add patch to fix linking errors on 32bit

ld: error: undefined symbol: __aeabi_uidivmod
>>> referenced by fakeglx.c
>>>               .libs/fakeglx.o:(Fake_glXWaitVideoSyncSGI)
>>> referenced by bufferobj.c
>>>               bufferobj.o:(buffer_page_commitment) in archive ../../../../src/mesa/.libs/libmesa.a
>>> referenced by bufferobj.c
>>>               bufferobj.o:(buffer_page_commitment) in archive ../../../../src/mesa/.libs/libmesa.a
>>> referenced 80 more times
This commit is contained in:
Leonid Pliushch 2021-11-06 20:28:39 +02:00 committed by Yaksh Bariya
parent 6fe2a020bc
commit 711c8e821b
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
2 changed files with 17 additions and 0 deletions

View File

@ -32,6 +32,9 @@ ac_cv_header_xlocale_h=no
termux_step_pre_configure() {
export LIBS="-landroid-shmem -latomic"
aclocal
automake
autoconf
}
termux_step_post_massage() {

14
x11-packages/mesa/libtool.m4.patch vendored Normal file
View File

@ -0,0 +1,14 @@
diff -uNr mesa-17.3.9/m4/libtool.m4 mesa-17.3.9.mod/m4/libtool.m4
--- mesa-17.3.9/m4/libtool.m4 2018-04-18 11:44:05.000000000 +0300
+++ mesa-17.3.9.mod/m4/libtool.m4 2021-11-06 20:20:39.088856120 +0200
@@ -6405,8 +6405,8 @@
# Check if GNU C++ uses GNU ld as the underlying linker, since the
# archiving commands below assume that GNU ld is being used.
if test yes = "$with_gnu_ld"; then
- _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+ _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'