summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-08 21:04:07 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-08 21:04:07 +0000
commit8e038500d3f1cbd8b67ac31004eeca89284ef3bb (patch)
treee016fec53e92e8d5b7f3fb5441f25a0b14288077 /build
parente9f04881313ea2fd0ba0698ec255769fa4c35542 (diff)
downloadchromium_src-8e038500d3f1cbd8b67ac31004eeca89284ef3bb.zip
chromium_src-8e038500d3f1cbd8b67ac31004eeca89284ef3bb.tar.gz
chromium_src-8e038500d3f1cbd8b67ac31004eeca89284ef3bb.tar.bz2
Linux: switch to using the system libraries in some cases.
Previously we built our own copies of many common system libraries. This comes from our Windows history, where these libraries have to be carried by any application using them because they aren't provided as standard. On Linux, however, they are ubiqutous so we can save binary size by dynamically linking against the system versions. TEST=none BUG=29738 http://codereview.chromium.org/465126 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34084 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi9
1 files changed, 9 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 91d103b..d0685e3 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -45,6 +45,15 @@
'target_arch%':
'<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/arm.*/arm/")',
+ # On Linux, we use the system versions of several libraries. We end
+ # up pulling these in as .so's anyway since they are already in our
+ # transitive closure due to GTK.
+ 'use_system_zlib': 1,
+ 'use_system_libjpeg': 1,
+ 'use_system_bzip2': 1,
+ 'use_system_libpng': 1,
+ 'use_system_libjpeg': 1,
+ 'use_system_libxslt': 1,
}, { # OS!="linux"
'target_arch%': 'ia32',
}],