I have a CPAN module I am attempting to build. It requires compiling a small C program. I don’t have root on the system, so I have a complete parallel source tree in $HOME/local/src installed at $HOME/local/lib and $HOME/local/include, etc.
How do I pass CPPFLAGS=-I$HOME/local/include LDFLAGS=-L$HOME/local/lib to the CPAN module so that it will be properly built?
You can pass CPPFLAGS and LDFLAGS to the CPAN module build process by setting these as environment variables. I had luck with a local tidy and tidyp install after setting these, in Bash).
Steps:
I added the LD_LIBRARY_PATH setting above to get
-ltidyppicked up correctly for HTML::Tidy install.