| Index: build/linux/system.gyp
|
| diff --git a/build/linux/system.gyp b/build/linux/system.gyp
|
| index 757855212dfd287c9ffd8ff29b8a3217ebaa1be0..688903fbe0213241fe32eaa1ca12fc10f17643dc 100644
|
| --- a/build/linux/system.gyp
|
| +++ b/build/linux/system.gyp
|
| @@ -468,19 +468,43 @@
|
| {
|
| 'target_name': 'glib',
|
| 'type': 'settings',
|
| - 'direct_dependent_settings': {
|
| - 'cflags': [
|
| - '<!@(<(pkg-config) --cflags glib-2.0)',
|
| - ],
|
| - },
|
| - 'link_settings': {
|
| - 'ldflags': [
|
| - '<!@(<(pkg-config) --libs-only-L --libs-only-other glib-2.0)',
|
| - ],
|
| - 'libraries': [
|
| - '<!@(<(pkg-config) --libs-only-l glib-2.0)',
|
| - ],
|
| - },
|
| + 'toolsets': ['host', 'target'],
|
| + 'conditions': [
|
| + ['_toolset=="target"', {
|
| + 'direct_dependent_settings': {
|
| + 'cflags': [
|
| + '<!@(<(pkg-config) --cflags glib-2.0)',
|
| + ],
|
| + },
|
| + 'link_settings': {
|
| + 'ldflags': [
|
| + '<!@(<(pkg-config) --libs-only-L --libs-only-other glib-2.0)',
|
| + ],
|
| + 'libraries': [
|
| + '<!@(<(pkg-config) --libs-only-l glib-2.0)',
|
| + ],
|
| + },
|
| + }, {
|
| + 'direct_dependent_settings': {
|
| + 'cflags': [
|
| + '<!@(pkg-config --cflags glib-2.0)',
|
| + ],
|
| + },
|
| + 'link_settings': {
|
| + 'ldflags': [
|
| + '<!@(pkg-config --libs-only-L --libs-only-other glib-2.0)',
|
| + ],
|
| + 'libraries': [
|
| + '<!@(pkg-config --libs-only-l glib-2.0)',
|
| + ],
|
| + },
|
| + }],
|
| + ['chromeos==1', {
|
| + 'link_settings': {
|
| + 'libraries': [ '-lXtst' ]
|
| + }
|
| + }],
|
| + ],
|
| },
|
| {
|
| 'target_name': 'libresolv',
|
|
|