mirror of
https://github.com/termux/termux-packages.git
synced 2025-05-31 15:12:07 +00:00
22 lines
760 B
Diff
22 lines
760 B
Diff
--- a/tools/winegcc/winegcc.c.orig
|
|
+++ b/tools/winegcc/winegcc.c
|
|
@@ -430,8 +430,17 @@
|
|
{
|
|
if (target_name)
|
|
{
|
|
+ if (strstr(target_name, "android")) {
|
|
+ if (strstr(target_name, "arm")) {
|
|
+ str = strmake( "%s24", "armv7a-linux-androideabi" );
|
|
+ } else {
|
|
+ str = strmake( "%s24", target_name );
|
|
+ }
|
|
+ } else {
|
|
+ str = strmake( "%s", target_name );
|
|
+ }
|
|
strarray_add( &ret, "-target" );
|
|
- strarray_add( &ret, target_name );
|
|
+ strarray_add( &ret, str );
|
|
}
|
|
strarray_add( &ret, "-Wno-unused-command-line-argument" );
|
|
strarray_add( &ret, "-fuse-ld=lld" );
|