donk0yote,
i was thinking the crosscompile tools set would pass all the needed enviroment variables to the configure program, then i wouldn't need the big long options string......
you are absolutely right.
when both crosscompile tools and configure process are correct and in sync, you need not long options when invoking commands. my previous post was adressed to Martin who was trying to compile newvox demo and his linker could not find libSDL.so library.
i observe similar behavior when repeating his steps. so i am wondering if the cause of linking error (incorrect LIBS setting in Makefile?) is the same.
if the ld program isn't recognizing the env variables does that mean the ld needs to be replaced/recompiled?
i don´t think so. the ld linker does not recognise env. variables itself, they are passed to ld by gcc (ie. armv5tel-cacko-linux-gcc) and gcc knows these settings from Makefile. the Makefile is generated during the ./configure process.
the probable reason of our problems IMHO is some incompatibility between runzgcc-vfp.sh (which correctly sets X11LIB variable) and configure scripts for particular example (newvox in my and Martin´s case).
perhaps the source package we use is not ready for somehow newer crosscompiling process or we use wrong ./configure options.
in my case these options are:
export CC=/opt/arm/3.3.2-vfp/bin/armv5tel-cacko-linux-gcc
./configure --host=armv5tel-cacko-linux --build=i686-linux --x-includes=/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/X11R6/include --x-libraries=/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/X11R6/lib --disable-debug --prefix=/usr/local
...and subsequent ´make´ produces linking errors.
another strange thing is the need for explicit exporting CC variable. it sould be done either by runzgcc-vfp.sh or by ./configure.
we were warned enough.
as for uname problem:
if you have working uname but the configure fails, try to understand how ./configure processes the uname output and determines the linux version. it can be some issue with commands following uname (like sed, etc.)
hey, i am also new in crossompiling; coud some pdaXrom guru be of assistance?
-bver