void-packages/srcpkgs/mozc/patches/cross.patch
2021-05-01 09:01:04 +07:00

42 lines
1.6 KiB
Diff

Index: mozc/src/gyp/common.gypi
===================================================================
--- mozc/src/gyp/common.gypi.orig
+++ mozc/src/gyp/common.gypi
@@ -409,12 +409,12 @@
'conditions': [
['target_platform=="Linux"', {
'make_global_settings': [
- ['AR', '<!(which ar)'],
- ['CC', '<!(which clang)'],
- ['CXX', '<!(which clang++)'],
- ['LD', '<!(which ld)'],
- ['NM', '<!(which nm)'],
- ['READELF', '<!(which readelf)'],
+ ['AR', '<!(which ${AR_target:-ar})'],
+ ['CC', '<!(which ${CC_target:-cc})'],
+ ['CXX', '<!(which ${CXX_target:-c++})'],
+ ['LD', '<!(which ${LD_target:-ld})'],
+ ['NM', '<!(which ${NM_target:-nm})'],
+ ['READELF', '<!(which ${READELF_target:-readelf})'],
],
}],
['target_platform=="Android"', {
@@ -459,12 +459,12 @@
['LD', '<(ndk_bin_dir)/<(toolchain_prefix)-ld'],
['NM', '<(ndk_bin_dir)/<(toolchain_prefix)-nm'],
['READELF', '<(ndk_bin_dir)/<(toolchain_prefix)-readelf'],
- ['AR.host', '<!(which ar)'],
- ['CC.host', '<!(which clang)'],
- ['CXX.host', '<!(which clang++)'],
- ['LD.host', '<!(which ld)'],
- ['NM.host', '<!(which nm)'],
- ['READELF.host', '<!(which readelf)'],
+ ['AR.host', '<!(which ${AR:-ar})'],
+ ['CC.host', '<!(which ${CC:-cc})'],
+ ['CXX.host', '<!(which ${CXX:-c++})'],
+ ['LD.host', '<!(which ${LD:-ld})'],
+ ['NM.host', '<!(which ${NM:-nm})'],
+ ['READELF.host', '<!(which ${READELF:-readelf})'],
],
}],
],