openbsd-ports/www/chromium/patches/patch-build_common_gypi

57 lines
2.1 KiB
Plaintext

$OpenBSD: patch-build_common_gypi,v 1.26 2014/09/15 06:29:56 robert Exp $
--- build/common.gypi.orig.port Wed Sep 10 01:47:11 2014
+++ build/common.gypi Sat Sep 13 14:21:07 2014
@@ -87,7 +87,7 @@
'conditions': [
# ChromeOS and Windows use Aura and Ash.
- ['chromeos==1 or OS=="win" or OS=="linux"', {
+ ['chromeos==1 or OS=="win" or OS=="linux" or OS=="openbsd"', {
'use_ash%': 1,
'use_aura%': 1,
}],
@@ -754,7 +754,7 @@
# Use GPU accelerated cross process image transport by default
# on linux builds with the Aura window manager
- ['use_aura==1 and OS=="linux"', {
+ ['use_aura==1 and (OS=="linux" or OS=="openbsd")', {
'ui_compositor_image_transport%': 1,
}, {
'ui_compositor_image_transport%': 0,
@@ -887,7 +887,7 @@
# NOTE: The check for disable_nacl==0 and component=="static_library"
# can't be used here because these variables are not defined yet, but it
# is still not supported.
- ['OS!="ios" and OS!="android" and chromeos==0', {
+ ['OS!="ios" and OS!="android" and chromeos==0 and OS!="openbsd"', {
'test_isolation_mode%': 'check',
}, {
'test_isolation_mode%': 'noop',
@@ -3311,6 +3311,14 @@
],
},
}],
+ ['OS=="openbsd"', {
+ 'target_defaults': {
+ 'cflags': [
+ '-fno-stack-protector',
+ '-Wno-unknown-warning-option',
+ ],
+ },
+ }],
['os_posix==1 and OS!="mac" and OS!="ios"', {
'target_defaults': {
# Enable -Werror by default, but put it in a variable so it can
@@ -5385,8 +5393,8 @@
['clang==1 and ((OS!="mac" and OS!="ios") or clang_xcode==0) '
'and OS!="win"', {
'make_global_settings': [
- ['CC', '<(make_clang_dir)/bin/clang'],
- ['CXX', '<(make_clang_dir)/bin/clang++'],
+ ['CC', '/usr/local/bin/clang'],
+ ['CXX', '/usr/local/bin/clang++'],
['CC.host', '$(CC)'],
['CXX.host', '$(CXX)'],
],