summaryrefslogtreecommitdiffstats
path: root/third_party/libjpeg
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libjpeg')
-rw-r--r--third_party/libjpeg/libjpeg.gyp9
1 files changed, 8 insertions, 1 deletions
diff --git a/third_party/libjpeg/libjpeg.gyp b/third_party/libjpeg/libjpeg.gyp
index c0259d6..1b0798b 100644
--- a/third_party/libjpeg/libjpeg.gyp
+++ b/third_party/libjpeg/libjpeg.gyp
@@ -4,7 +4,14 @@
{
'variables': {
- 'use_system_libjpeg%': 0,
+ 'conditions': [
+ [ 'OS=="linux"', {
+ # Link to system .so since we already use it due to GTK.
+ 'use_system_libjpeg%': 1,
+ }, { # OS!="linux"
+ 'use_system_libjpeg%': 0,
+ }],
+ ],
},
'conditions': [
['use_system_libjpeg==0', {