tdesktop/Telegram/Patches/macold/mini_chromium.diff

29 lines
977 B
Diff
Raw Normal View History

diff --git a/build/common.gypi b/build/common.gypi
2019-01-05 12:34:34 +00:00
index 1affc70..0677e4b 100644
--- a/build/common.gypi
+++ b/build/common.gypi
2019-01-05 12:34:34 +00:00
@@ -66,6 +66,13 @@
'conditions': [
['clang!=0', {
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', # -std=c++11
+ 'OTHER_CPLUSPLUSFLAGS': [ '-nostdinc++' ],
+ 'OTHER_LDFLAGS': [
+ '/usr/local/macold/lib/libc++.a',
+ '/usr/local/macold/lib/libc++abi.a',
2019-01-05 12:34:34 +00:00
+ '-isysroot/',
+ '-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/',
+ ],
# Don't link in libarclite_macosx.a, see http://crbug.com/156530.
'CLANG_LINK_OBJC_RUNTIME': 'NO', # -fno-objc-link-runtime
2019-01-05 12:34:34 +00:00
@@ -116,6 +123,9 @@
],
},
+ 'include_dirs': [
+ '/usr/local/macold/include/c++/v1',
+ ],
}],
['OS=="linux"', {