Am currently trying to compile an c++ source to so file manually. Without recipe, I would like to cross build it arm7L EABI5 format. Currently, I am getting the so file in format of EABI4 and on board it is complaining,
ERROR: ld.so: ****.so from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored error
Under /opt/freescale, cross tool-chain is available.
1) export PATH=/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/arm-none-linux-gnueabi/bin:$PATH
2) g++ lib***.c -o lib***-arm.so -fPIC -shared -pthread -ldl -D_GNU_SOURCE
1) sudo LD_PRELOAD=./lib***.so LD_LIBRARY_PATH=. ./app
Am I missing anything?