Created
January 2, 2018 21:02
-
-
Save Colelyman/4cca88432dbdbaef3c09ac76cdd00bc6 to your computer and use it in GitHub Desktop.
How to link software installed in a custom location using autotools.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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