I have open2x installed on Ubuntu Dapper, and I can use it to build simple SDL apps and such then run them on the gp2x with no problems.
However, what I'd like to do is build a statically linked gpsd from source. So far I've got it to build with the following ./configure
It builds fine, but then when I try to run it on the gp2x, it complains that libc is not 2.3.5 (I have 2.2 on my gp2x).
What I'd like to know is how to make a package like this build statically, such that it will run on unmodified firmwares. I thought --disable-shared and --enable-static along with passing -static to the linker would do this but apparently not? I seem to be missing something basic to make this work.
Thanks!
Andy.
However, what I'd like to do is build a statically linked gpsd from source. So far I've got it to build with the following ./configure
Code:
./configure --host open2x --disable-dbus --without-x --disable-python CC=open2x-gcc CFLAGS='-I"/usr/local/open2x/include/" -I"/usr/local/open2x/include/ncurses/" -DTARGET_GP2X -Os' LDFLAGS='-L"/usr/local/open2x/lib/" -static' --prefix=/mnt/sd/gpsd2/ --disable-shared --enable-static
It builds fine, but then when I try to run it on the gp2x, it complains that libc is not 2.3.5 (I have 2.2 on my gp2x).
What I'd like to know is how to make a package like this build statically, such that it will run on unmodified firmwares. I thought --disable-shared and --enable-static along with passing -static to the linker would do this but apparently not? I seem to be missing something basic to make this work.
Code:
file /mnt/sd/gpsd2/sbin/gpsd
/mnt/sd/gpsd2/sbin/gpsd: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.0.0, dynamically linked (uses shared libs), for GNU/Linux 2.0.0, not stripped
Thanks!
Andy.