From 4907ac4a4a21e30f8e8931700f066be7a77268bd Mon Sep 17 00:00:00 2001 From: "piman@chromium.org" Date: Mon, 2 Nov 2009 20:32:51 +0000 Subject: 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 --- build/common.gypi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'build/common.gypi') 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'] + }] + ], }], ], }, -- cgit v1.1