Hello I'm playing with an opensource project openbsc.
Now I want build the project with debug info. When I add -g3 and O0, somehow during build (by typing "make") it overruled by -g -O2.
So I asked a dude on IRC how to get the debug info in the executable and that guy said something with: make CFLAGS=-g3 -O0 // I don't remember exactly.
That worked for me, I was really happy to debug properly. But now I forgot how to do it, cause I get an error from make.
I tried:
make CFLAGS=-g3 -O0
make $CFLAGS=-g3 -O0
but these result in invalid options...
Does someone know how to do it the right way?
Thnx...