I have some difficulty to cross compile tbb on my linux machine. My aim is to compile tbb on linux but for use on windows. The cross compiler is mingw-w64: x86_64-w64-mingw32-g++-5.2.0.
For other libraries, I normally just set CC, CXX, CFLAGS and CXXFLAGS and run configure, make, make install:
CC=x86_64-w64-mingw32-gcc-5.2.0 CXX=x86_64-w64-mingw32-g++-5.2.0 ./configure; make; make install
However for tbb, there is no such configure procedure and I was not able to modify the .inc files in build to do the same.