Index: site_scons/site_tools/naclsdk.py |
diff --git a/site_scons/site_tools/naclsdk.py b/site_scons/site_tools/naclsdk.py |
index b5f7f5848713abac479b171bd15b619fd098f82f..1045c22c543fef8ea7f1f1ac0b6a414a4fb5eca4 100755 |
--- a/site_scons/site_tools/naclsdk.py |
+++ b/site_scons/site_tools/naclsdk.py |
@@ -237,7 +237,7 @@ def _SetEnvForPnacl(env, root): |
if env.Bit('minsfi'): |
pnacl_llc_flags += ' -relocation-model=pic -filetype=obj' |
- pnacl_ld_flags += ' -nostdlib -Wl,-r' |
+ pnacl_ld_flags += ' -nostdlib -Wl,-r -L' + os.path.join(root, 'usr', 'lib') |
if env.Bit('use_sandboxed_translator'): |
sb_flags = ' --pnacl-sb' |