summaryrefslogtreecommitdiffstats
path: root/misc/fcitx5-mozc/0012-mozc-build-gcc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'misc/fcitx5-mozc/0012-mozc-build-gcc.patch')
-rw-r--r--misc/fcitx5-mozc/0012-mozc-build-gcc.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/misc/fcitx5-mozc/0012-mozc-build-gcc.patch b/misc/fcitx5-mozc/0012-mozc-build-gcc.patch
new file mode 100644
index 0000000000..5d8f74faff
--- /dev/null
+++ b/misc/fcitx5-mozc/0012-mozc-build-gcc.patch
@@ -0,0 +1,27 @@
+Index: b/gyp/common.gypi
+===================================================================
+--- a/gyp/common.gypi
++++ b/gyp/common.gypi
+@@ -128,9 +128,9 @@
+ 'compiler_host_version_int': 304, # Clang 3.4 or higher
+ }],
+ ['target_platform=="Linux"', {
+- 'compiler_target': 'clang',
++ 'compiler_target': 'gcc',
+ 'compiler_target_version_int': 304, # Clang 3.4 or higher
+- 'compiler_host': 'clang',
++ 'compiler_host': 'gcc',
+ 'compiler_host_version_int': 304, # Clang 3.4 or higher
+ }],
+ ],
+@@ -445,8 +445,8 @@
+ ['target_platform=="Linux"', {
+ 'make_global_settings': [
+ ['AR', '<!(which ar)'],
+- ['CC', '<!(which clang)'],
+- ['CXX', '<!(which clang++)'],
++ ['CC', '<!(which gcc)'],
++ ['CXX', '<!(which g++)'],
+ ['LD', '<!(which ld)'],
+ ['NM', '<!(which nm)'],
+ ['READELF', '<!(which readelf)'],