void-packages/srcpkgs/mozc/patches/cxx-stdlib.patch
2022-02-10 17:32:13 +07:00

36 lines
1 KiB
Diff

--- a/mozc/src/gyp/common.gypi
+++ b/mozc/src/gyp/common.gypi
@@ -73,9 +73,6 @@
'-Wno-deprecated-declarations',
'-Wwrite-strings',
'<@(extra_warning_cflags)',
-
- '-Wno-unknown-warning-option',
- '-Wno-inconsistent-missing-override',
],
# gcc_cflags will be shared with Mac and Linux
@@ -105,7 +102,7 @@
],
# Libraries for GNU/Linux environment.
'linux_ldflags': [
- '-lc++',
+ '-lstdc++',
'-pthread',
],
@@ -123,10 +120,10 @@
'compiler_host_version_int': 304, # Clang 3.4 or higher
}],
['target_platform=="Linux"', {
- 'compiler_target': 'clang',
- 'compiler_target_version_int': 304, # Clang 3.4 or higher
- 'compiler_host': 'clang',
- 'compiler_host_version_int': 304, # Clang 3.4 or higher
+ 'compiler_target': 'gcc',
+ 'compiler_target_version_int': 1000, # Clang 3.4 or higher
+ 'compiler_host': 'gcc',
+ 'compiler_host_version_int': 1000, # Clang 3.4 or higher
}],
],
},