mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-27 06:18:57 +00:00
407939c3db
Co-authored-by: kawanakaiku <80381779+kawanakaiku@users.noreply.github.com>
22 lines
802 B
Plaintext
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" );
|