diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-23 23:52:34 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-23 23:52:34 +0000 |
commit | 0207709de447c9a1871d0ecb7c29c283200a82d8 (patch) | |
tree | 85c0503863cdd557f654ac957eaca7b59df433b9 /build | |
parent | 7277e3d3d910fe94baa488c273c6d380187a84e7 (diff) | |
download | chromium_src-0207709de447c9a1871d0ecb7c29c283200a82d8.zip chromium_src-0207709de447c9a1871d0ecb7c29c283200a82d8.tar.gz chromium_src-0207709de447c9a1871d0ecb7c29c283200a82d8.tar.bz2 |
linux: Build with -fPIC on all arches but x86 32-bit.
I will watch the bots to see if this affects performance.
BUG=26625
TEST=compiles
Review URL: http://codereview.chromium.org/3501001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60384 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/build/common.gypi b/build/common.gypi index 66294115..f2311a5 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -93,6 +93,14 @@ }, { 'use_gnome_keyring%': 1, }], + + # Set to 1 compile with -fPIC cflag on linux. This is a must for shared + # libraries on linux x86-64 and arm. + ['host_arch=="ia32"', { + 'linux_fpic%': 0, + }, { + 'linux_fpic%': 1, + }], ], 'host_arch%': '<(host_arch)', @@ -114,10 +122,6 @@ # compilation. 'fastbuild%': 0, - # Set to 1 compile with -fPIC cflag on linux. This is a must for shared - # libraries on linux x86-64 and arm. - 'linux_fpic%': 0, - # Python version. 'python_ver%': '2.5', @@ -154,6 +158,7 @@ 'host_arch%': '<(host_arch)', 'toolkit_views%': '<(toolkit_views)', 'use_gnome_keyring%': '<(use_gnome_keyring)', + 'linux_fpic%': '<(linux_fpic)', 'chromeos%': '<(chromeos)', 'touchui%': '<(touchui)', 'inside_chromium_build%': '<(inside_chromium_build)', |