Okay, I'm trying to cross-compile some things, but they're trying me crazy...
Using CodeSourcery, built the toolchain according to cpasjuste's manual.
One thing is driving me crazy:
cc1: warning: include location "/usr/include/SDL" is unsafe for cross-compilation
Well, the system is right, /usr/include/SDL IS unsafe for cross-compilation.
However, when running the ./configure-script, I always use --includedir=/home/michi/pandora-dev/arm-2009q3/usr/include --libdir=/home/michi/pandora-dev/arm-2009q3/usr/lib
When I take a look in the Makefile, the directories also seem to be correct.
For example, trying to compile penguin-command (part of the makefile):
So, yeah, paths seem fine.
However, when I run make, it runs, for exmample the following command-line:
So... where the heck is that -I/usr/include/SDL coming from? It's NOWHERE in the Makefile.
It's the same with ClawsMail (also using automake)...
How the heck can I tell the system to NOT use the wrong include-dirs?
Thanks for any help.
Using CodeSourcery, built the toolchain according to cpasjuste's manual.
One thing is driving me crazy:
cc1: warning: include location "/usr/include/SDL" is unsafe for cross-compilation
Well, the system is right, /usr/include/SDL IS unsafe for cross-compilation.
However, when running the ./configure-script, I always use --includedir=/home/michi/pandora-dev/arm-2009q3/usr/include --libdir=/home/michi/pandora-dev/arm-2009q3/usr/lib
When I take a look in the Makefile, the directories also seem to be correct.
For example, trying to compile penguin-command (part of the makefile):
Code:
CFLAGS = -g -O2 -I/home/michi/pandora-dev/arm-2009q3/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wall -DJOYSTICK -DDATADIR="\"${datarootdir}/penguin-command\""
LDFLAGS = -Wl,-rpath -Wl,/home/michi/pandora-dev/arm-2009q3/usr/lib -L/home/michi/pandora-dev/arm-2009q3/usr/lib -L/home/michi/pandora-dev/arm-2009q3/arm-none-linux-gnueabi/libc/lib -L/home/michi/pandora-dev/arm-2009q3/arm-none-linux-gnueabi/libc/usr/lib -L/home/michi/pandora-dev/arm-2009q3/usr/lib -s
SDL_CFLAGS = -I/home/michi/pandora-dev/arm-2009q3/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
SDL_CONFIG = /home/michi/pandora-dev/arm-2009q3/usr/bin/sdl-config
SDL_LIBS = -L/home/michi/pandora-dev/arm-2009q3/usr/lib -lSDL
LIBS = -L/home/michi/pandora-dev/arm-2009q3/usr/lib -lSDL
So, yeah, paths seem fine.
However, when I run make, it runs, for exmample the following command-line:
Code:
arm-none-linux-gnueabi-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"penguin-command\" -DVERSION=\"1.6.11\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MATH_H=1 -DHAVE_LIBM=1 -I. -I. -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wall -DJOYSTICK -DDATADIR="\"/usr/local/share/penguin-command\"" -MT joystick.o -MD -MP -MF ".deps/joystick.Tpo" -c -o joystick.o joystick.c;
So... where the heck is that -I/usr/include/SDL coming from? It's NOWHERE in the Makefile.
It's the same with ClawsMail (also using automake)...
How the heck can I tell the system to NOT use the wrong include-dirs?
Thanks for any help.