Closed AMDmi3 closed 11 years ago
+1. But, you can also set CPLUS_INCLUDE_PATH
and LIBRARY_PATH
to enable building against custom dependency locations. This is what I have been doing on OS X to get the build to work given the lacking support for inheriting CXXFLAGS
and LDFLAGS
in the current build scripts.
Call make as follows to set CXX etc. from the command line: make CXX=foo This will override the setting of the CXX var in the makefile.
Erm, this is a shell script and not a makefile. It doesn't allow changing the variable without modifying the script.
This is needed, for example, to support tests in FreeBSD port of osmium. Tests should respect systemwide compiler and flags (passed through environment), which among other things contain include/library paths critical for successful compilation.