summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-08 00:45:29 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-08 00:45:29 +0000
commitf192fa9948bfbdb99cf6838cb847e4d08f31602e (patch)
tree56c2ff8c7a6b22800d655e1e5a7c380bbb7af15c /build
parenta0feb4e193ecc822249a6ff8626a7cefa09d00d1 (diff)
downloadchromium_src-f192fa9948bfbdb99cf6838cb847e4d08f31602e.zip
chromium_src-f192fa9948bfbdb99cf6838cb847e4d08f31602e.tar.gz
chromium_src-f192fa9948bfbdb99cf6838cb847e4d08f31602e.tar.bz2
linux: remove --as-needed in the shared build
The shared build is a quick hack for quick links; we don't need to optimize the link line and, in fact, doing so breaks the v8 link. (Fix from Craig Schlenter <craig.schlenter@chromium.org>.) BUG=61430 TEST=build chrome with GYP_DEFINES=library=shared_library and BUILDTYPE=Release Review URL: http://codereview.chromium.org/5578007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68542 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 5944fcb..718c2e5 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -1136,6 +1136,11 @@
'cflags': ['-fPIC']
}]
],
+ 'ldflags!': [
+ # --as-needed confuses library interdependencies.
+ # See http://code.google.com/p/chromium/issues/detail?id=61430
+ '-Wl,--as-needed',
+ ],
}],
['linux_use_heapchecker==1', {
'variables': {'linux_use_tcmalloc%': 1},