diff options
author | piman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-11 01:59:36 +0000 |
---|---|---|
committer | piman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-11 01:59:36 +0000 |
commit | 1f4dd6d26bc1a1548a270c0ad94b58321637e7a0 (patch) | |
tree | 4e5e62973fcb0e667e72b433c17681d7105adb23 /o3d/build/common_global.gypi | |
parent | 38b48a844731cd10d69d8e99d476e3dac9e81980 (diff) | |
download | chromium_src-1f4dd6d26bc1a1548a270c0ad94b58321637e7a0.zip chromium_src-1f4dd6d26bc1a1548a270c0ad94b58321637e7a0.tar.gz chromium_src-1f4dd6d26bc1a1548a270c0ad94b58321637e7a0.tar.bz2 |
linux: 64-bit
This CL enables a 64-bit of linux. Set target_arch='x64' in the gyp defines to enable.
- fixes a few 64-bit issues
- fixes some linux build issues on scons vs make
- add rules to build 64-bit version
Review URL: http://codereview.chromium.org/371078
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31642 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/build/common_global.gypi')
-rw-r--r-- | o3d/build/common_global.gypi | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/o3d/build/common_global.gypi b/o3d/build/common_global.gypi new file mode 100644 index 0000000..e3b5429 --- /dev/null +++ b/o3d/build/common_global.gypi @@ -0,0 +1,25 @@ +# Copyright (c) 2009 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# This file contains flags that are specific to o3d, but affect the build as a +# whole (e.g. build flags that change the ABI). +# For example, on linux amd64, all the libraries that will be linked into the +# plugin (skia, v8, ...) need to be compiled with -fPIC but we don't want to do +# that generally in Chrome (so it can't be lumped into the top-level +# build/common.gypi). +{ + 'target_defaults': { + 'conditions': [ + [ 'OS == "linux" and target_arch=="x64"', { + 'cflags': [ + '-m64', + '-fPIC', + ], + 'ldflags': [ + '-m64', + ], + }], + ], + }, +} |