0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-03-04 04:48:55 +00:00
termux-packages/x11-packages/wine-stable/9998-fix-winegcc-build-target.patch.beforehostbuild
2025-02-01 19:18:07 +08:00

22 lines
764 B
Diff

--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -297,7 +297,17 @@
if (target)
{
strarray_add( &ret, "-target" );
- strarray_add( &ret, target );
+ if (strstr(target, "android")) {
+ if (strstr(target, "arm")) {
+ str = strmake( "%s24", "armv7a-linux-androideabi" );
+ } else {
+ str = strmake( "%s24", target );
+ }
+ } else {
+ str = strmake( "%s", target );
+ }
+ strarray_add( &ret, "-target" );
+ strarray_add( &ret, str );
}
strarray_add( &ret, "-Wno-unused-command-line-argument" );
strarray_add( &ret, "-fuse-ld=lld" );