joto / osmium

C++/Javascript framework for working with OSM files.
http://wiki.openstreetmap.org/wiki/Osmium
GNU General Public License v3.0
123 stars 31 forks source link

Allow to override CXX/CXXFLAGS through environment #68

Closed AMDmi3 closed 11 years ago

AMDmi3 commented 11 years ago

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.

springmeyer commented 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.

joto commented 11 years ago

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.

AMDmi3 commented 11 years ago

Erm, this is a shell script and not a makefile. It doesn't allow changing the variable without modifying the script.