termux-packages/x11-packages/mesa/libtool.m4.patch
Leonid Pliushch 711c8e821b
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
2022-04-18 14:48:07 +05:30

15 lines
1.2 KiB
Diff

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'