0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-27 06:18:57 +00:00
termux-packages/x11-packages/wine-stable/9998-fix-winegcc-build-target.patch.beforehostbuild
Chongyun Lee 407939c3db
new package: wine-stable (#18866)
Co-authored-by: kawanakaiku <80381779+kawanakaiku@users.noreply.github.com>
2024-01-22 23:17:33 +08:00

22 lines
802 B
Plaintext

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