Skip to content

Instantly share code, notes, and snippets.

@mklooss
Created July 4, 2017 05:40
Show Gist options
  • Save mklooss/d910887e0065c2977ee1b9b8e3f03831 to your computer and use it in GitHub Desktop.
Save mklooss/d910887e0065c2977ee1b9b8e3f03831 to your computer and use it in GitHub Desktop.
Compile with different Libs
#!/bin/bash
C_DIR=/opt/app
PKG_CONFIG_PATH="${C_DIR}/lib/pkgconfig" \
LD_LIBRARY_PATH="${C_DIR}/lib" \
CPPFLAGS="-I${C_DIR}/include" \
LDFLAGS="-L${C_DIR}/lib" ./configure --prefix=$C_DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment