Index: pylib/gyp/generator/make.py |
=================================================================== |
--- pylib/gyp/generator/make.py (revision 1429) |
+++ pylib/gyp/generator/make.py (working copy) |
@@ -1418,6 +1418,9 @@ |
ldflags.append(r'-Wl,-rpath=\$$ORIGIN/lib.%s/' % self.toolset) |
ldflags.append(r'-Wl,-rpath-link=\$(builddir)/lib.%s/' % |
self.toolset) |
+ library_dirs = spec.get('library_dirs', []) |
+ library_dirs += config.get('library_dirs', []) |
+ ldflags += [('-L%s' % library_dir) for library_dir in library_dirs] |
self.WriteList(ldflags, 'LDFLAGS_%s' % configname) |
libraries = spec.get('libraries') |
if libraries: |