multiple versions of GLIBC on target machine
My target system is arm and my current applications had been built with
g++ (GCC) 4.2.4
I created a new application but needed to use
arm-linux-gnueabi-g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
When I try to execute this on my arm target system I get
root@at91sam9m10g45ek:~# ./myapp
./myapp: /lib/libc.so.6: version `GLIBC_2.15' not found (required by ./myapp)
I am trying to add support on my target system for multiple version of GLIBC to coexist by putting the newer version libraries and loader in a different directory. When configuring my build environment I am trying to use --rpath to tell the linker where the new libraries are located on the target and using --dynamic-linker to add the new path to the application where the loader is located. I get the following error when tying to do this.
./configure --build i686-pc-linux-gnu --host arm-linux-gnueabi --prefix=/work/build/ CPPFLAGS=-DLINUX_VERSION_A Wl,--rpath=/usr/local/lib Wl,--dynamic-linker=/usr/local/lib/ld-linux.so.3
configure: error: invalid variable name: `Wl,--rpath'
I am not an expert in auto make and possibly there is a better way of doing this... Thanks
|