Index: gyp/common_conditions.gypi |
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi |
index 48f8e19d033e07e740b03382908699b0657ea517..3fa697e6e29c2d7f7f5825406962ef298383cd65 100644 |
--- a/gyp/common_conditions.gypi |
+++ b/gyp/common_conditions.gypi |
@@ -264,6 +264,9 @@ |
'defines': [ |
'SK_BUILD_FOR_NACL', |
], |
+ 'variables': { |
+ 'nacl_sdk_root': '<!(["echo", "${NACL_SDK_ROOT}"])', |
+ }, |
'link_settings': { |
'libraries': [ |
'-lppapi', |
@@ -271,6 +274,10 @@ |
'-lnosys', |
'-pthread', |
], |
+ 'ldflags': [ |
+ '-L<(nacl_sdk_root)/lib/newlib_x86_<(skia_arch_width)/Release', |
+ '-L<(nacl_sdk_root)/ports/lib/newlib_x86_<(skia_arch_width)/Release', |
+ ], |
}, |
}, { # skia_os != "nacl" |
'link_settings': { |