| Index: common.gypi |
| =================================================================== |
| --- a/common.gypi |
| +++ b/common.gypi |
| @@ -7,19 +7,23 @@ |
| 'v8_optimized_debug': 0, |
| 'v8_enable_i18n_support': 0, |
| }, |
| 'conditions': [ |
| ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
| or OS=="netbsd" or OS=="android"', { |
| 'target_defaults': { |
| + # V8 headers cause a build error on recent gcc. |
| + # Adding -fpermissive to solve this. |
| + # See https://issues.adblockplus.org/ticket/4950 |
| + # We might be able to do without after upgrading V8. |
| 'cflags': [ '-Wall', '-W', '-Wno-unused-parameter', |
| '-Wnon-virtual-dtor', '-pthread', '-fno-rtti', |
| - '-pedantic', '-std=c++0x', '-fexceptions', ], |
| + '-pedantic', '-std=c++0x', '-fexceptions', '-fpermissive' ], |
| 'cflags!': [ '-Werror', ], |
| 'ldflags': [ '-pthread', ], |
| }, |
| }], |
| ['OS=="mac"', { |
| 'xcode_settings': { |
| 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', |
| 'CLANG_CXX_LIBRARY': 'libc++', |