openbsd-ports/www/chromium/patches/patch-build_common_gypi
robert 1d1f0ea496 update to 15.0.874.102.
switch from using the hacked macosx transport dib to the linux one
which uses sysv shms.
make sure you also have a current kernel before using this version
2011-10-27 07:59:08 +00:00

38 lines
1.5 KiB
Plaintext

$OpenBSD: patch-build_common_gypi,v 1.11 2011/10/27 07:59:08 robert Exp $
--- build/common.gypi.orig Wed Oct 26 13:56:52 2011
+++ build/common.gypi Wed Oct 26 14:22:38 2011
@@ -960,9 +960,11 @@
'-Wextra',
'-Werror',
],
- 'cflags': [
+ 'cflags_cc': [
# Don't warn about hash_map in third-party code.
'-Wno-deprecated',
+ ],
+ 'cflags': [
# Don't warn about printf format problems.
# This is off by default in gcc but on in Ubuntu's gcc(!).
'-Wno-format',
@@ -973,7 +975,7 @@
'-Wsign-compare',
]
}],
- [ 'os_posix==1 and OS!="mac" and chromeos==0', {
+ [ 'os_posix==1 and OS!="mac" and OS!="openbsd" and chromeos==0', {
'cflags': [
# Don't warn about ignoring the return value from e.g. close().
# This is off by default in some gccs but on by default in others.
@@ -1045,7 +1047,10 @@
['exclude', '(^|/)(wayland)_[^/]*\\.(h|cc)$'],
],
}],
- ['OS!="linux"', {
+ # Do not exclude the linux files on OpenBSD since most of them can be
+ # shared at this point.
+ # In case a file is not needed, it is going to be excluded later on.
+ ['OS!="linux" and OS!="openbsd"', {
'sources/': [
['exclude', '_linux(_unittest)?\\.(h|cc)$'],
['exclude', '(^|/)linux/'],