diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-02 20:32:51 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-02 20:32:51 +0000 |
commit | 4907ac4a4a21e30f8e8931700f066be7a77268bd (patch) | |
tree | f1fbe759d0b48388561dd48f1509cbfabe21f318 /build | |
parent | 6c0dabc62c20fecb61d6de75fed7b40b16214a2c (diff) | |
download | chromium_src-4907ac4a4a21e30f8e8931700f066be7a77268bd.zip chromium_src-4907ac4a4a21e30f8e8931700f066be7a77268bd.tar.gz chromium_src-4907ac4a4a21e30f8e8931700f066be7a77268bd.tar.bz2 |
linux: fix library=shared_library issues
Review URL: http://codereview.chromium.org/339079
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30738 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index ad2908a..e90321b 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -684,6 +684,12 @@ # When building with shared libraries, remove the visiblity-hiding # flag. 'cflags!': [ '-fvisibility=hidden' ], + 'conditions': [ + ['target_arch=="x64"', { + # Shared libraries need -fPIC on x86-64 + 'cflags': ['-fPIC'] + }] + ], }], ], }, |