Skip to content
Advertisement

Tag: autoconf

gdb can’t cross-compile for arm-linux

The Linux already having both gcc & arm-gcc in the environment path: So I configure the gdb 6.6: compiled without error, but looks like gdb used the wrong compiler. So How to indicate the correct CC for gdb? I tried make CC=arm-none-linux-gnueabi-gcc, but will get the error: Answer Don’t use –target. It means something else to Autotools. Use –build and

How to print value of C macro in configure

I have configure.in script. I want to invoke configure ( after autoheader && autoconf ) and see value of PAGE_SHIFT macro from system header page_types.h. Something like this: checking PAGE_SHIFT… 12 I’ve tried those: 1. Result: macro PAGE_SHIFT was detected, but haven’t been printed 2. Result: doesn’t work 3. Result: works, but can’t be used with cross-compile method was suggested

Advertisement