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