Skip to content

Instantly share code, notes, and snippets.

@Colelyman
Created January 2, 2018 21:02
Show Gist options
  • Save Colelyman/4cca88432dbdbaef3c09ac76cdd00bc6 to your computer and use it in GitHub Desktop.
Save Colelyman/4cca88432dbdbaef3c09ac76cdd00bc6 to your computer and use it in GitHub Desktop.
How to link software installed in a custom location using autotools.
# to be run within your project that is built with autotools (aka has a configure script)
# replace the text within '<...>' with the respective paths
export LD_LIBRARY_PATH=<lib directory of the library>:$LD_LIBRARY_PATH
./configure CPPFLAGS="-I<include directory of the library> -L<lib directory of the library>"
make CPPFLAGS="-I<include directory of the library> -L<lib directory of the library>" LDFLAGS="-I<include directory of the library> -L<lib directory of the library>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment