0001-gyp-always-install-into-PRODUCT_DIR.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 9b5e8dc426ada891d67d27b09acc73122ab46849 Mon Sep 17 00:00:00 2001
  2. From: Nathan Rajlich <nathan@tootallnate.net>
  3. Date: Wed, 14 Nov 2012 16:48:52 -0800
  4. Subject: [PATCH 1/3] gyp: always install into $PRODUCT_DIR
  5. ---
  6. gyp/pylib/gyp/generator/make.py | 12 +++++++-----
  7. 1 file changed, 7 insertions(+), 5 deletions(-)
  8. diff --git a/gyp/pylib/gyp/generator/make.py b/gyp/pylib/gyp/generator/make.py
  9. index b88a433..9b3e4e3 100644
  10. --- a/gyp/pylib/gyp/generator/make.py
  11. +++ b/gyp/pylib/gyp/generator/make.py
  12. @@ -1888,11 +1888,13 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)/%%%s FORCE_DO_CMD
  13. """Returns the location of the final output for an installable target."""
  14. # Xcode puts shared_library results into PRODUCT_DIR, and some gyp files
  15. # rely on this. Emulate this behavior for mac.
  16. - if (self.type == 'shared_library' and
  17. - (self.flavor != 'mac' or self.toolset != 'target')):
  18. - # Install all shared libs into a common directory (per toolset) for
  19. - # convenient access with LD_LIBRARY_PATH.
  20. - return '$(builddir)/lib.%s/%s' % (self.toolset, self.alias)
  21. +
  22. + # XXX(TooTallNate): disabling this code since we don't want this behavior...
  23. + #if (self.type == 'shared_library' and
  24. + # (self.flavor != 'mac' or self.toolset != 'target')):
  25. + # # Install all shared libs into a common directory (per toolset) for
  26. + # # convenient access with LD_LIBRARY_PATH.
  27. + # return '$(builddir)/lib.%s/%s' % (self.toolset, self.alias)
  28. return '$(builddir)/' + self.alias
  29. --
  30. 2.3.2 (Apple Git-55)