I am encountering a very strange issue. I am building my source for ARM with ARM compilers. I modified CXX field in makefile to build using arm-linux-gnueabihf-g++ instead of g++ but while building its still taking g++. Can someone please help me here? MY makefile has the following entry
CXX = g++
I modified it to look as follows
CXX = arm-linux-gnueabihf-g++
Shouldn’t the build happen using arm-linux-gnueabihf-g++ instead of g++?
Advertisement
Answer
It’s impossible to know why you’re seeing what you’re seeing without the rest of your build system, but here’s some general advice:
Don’t edit the makefile; pass the value you want on the command line:
make CXX=arm-linux-gnueabihf-g++ <whatever your normal args are>
Command line values override those set inside the file, and usually get passed down to nested makefiles and override all the other confusing stuff that can complicate this.
If that doesn’t work, check there isn’t a configure
script, or something else that you ought to be using instead.