Skip to content
Snippets Groups Projects
  • Alan Grosskurth's avatar
    bcc3ba09
    Make vendored libraries available at compile time (fixes #57) · bcc3ba09
    Alan Grosskurth authored
    When building, BUILD_DIR is set to a temporary directory. Vendored
    libraries (e.g., pylibmc) are downloaded and unpacked in
    $BUILD_DIR/.heroku/vendor/lib, but this is not currently in
    LIBRARY_PATH or LD_LIBRARY_PATH.
    
    Fix this by doing the following:
    
    * Add $BUILD_DIR/.heroku/vendor/lib to LIBRARY_PATH/LD_LIBRARY_PATH
    
    * Add $BUILD_DIR/.heroku/vendor/include to
      C_INCLUDE_PATH/CPLUS_INCLUDE_PATH
    
    * Add $BUILD_DIR/.heroku/vendor/bin to PATH, so vendored commands can
      be used at compile time (e.g., curl-config)
    
    * Add $BUILD_DIR/.heroku/vendor/lib/pkg-config to PKG_CONFIG_PATH, so
      vendored packages can be found with pkg-config
    bcc3ba09
    History
    Make vendored libraries available at compile time (fixes #57)
    Alan Grosskurth authored
    When building, BUILD_DIR is set to a temporary directory. Vendored
    libraries (e.g., pylibmc) are downloaded and unpacked in
    $BUILD_DIR/.heroku/vendor/lib, but this is not currently in
    LIBRARY_PATH or LD_LIBRARY_PATH.
    
    Fix this by doing the following:
    
    * Add $BUILD_DIR/.heroku/vendor/lib to LIBRARY_PATH/LD_LIBRARY_PATH
    
    * Add $BUILD_DIR/.heroku/vendor/include to
      C_INCLUDE_PATH/CPLUS_INCLUDE_PATH
    
    * Add $BUILD_DIR/.heroku/vendor/bin to PATH, so vendored commands can
      be used at compile time (e.g., curl-config)
    
    * Add $BUILD_DIR/.heroku/vendor/lib/pkg-config to PKG_CONFIG_PATH, so
      vendored packages can be found with pkg-config