void-packages/srcpkgs/mozc/patches/cross.patch
Matthias von Faber c90670d8b9 New package: mozc-2.23.2815.102
Co-authored-by: maxice8 <thinkabit.ukim@gmail.com>
2019-03-09 17:26:33 -03:00

40 lines
1.5 KiB
Diff

--- mozc/src/gyp/common.gypi
+++ mozc/src/gyp/common.gypi
@@ -444,12 +444,12 @@
}],
['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"', {
@@ -494,12 +494,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})'],
],
}],
],