I am developing software for an AM335 platform and I'm using a TI BSP provided by another company (busybox is running on the controller). The BSP includes a compiler and linker for the target platform.
Now I need to cross-build "sfdisk" from "util-linux" (not available in busybox), and therefore changed the Makefile to use the BSP compiler and linker.
However, the PC version of "libtool" is used in the moment because I can't find a "target version" of libtool in the BSP.
The host "libtool" calls "/usr/bin/ld" (->/usr/bin/ld.bfd). The LD setting in the Makefile does not have any effect on libtool, so I changed the softlink "/usr/bin/ld" to refer to the BSP linker.
That's where I got stuck with "make":
...
CC libuuid/src/libuuid_la-uuid_time.lo CC lib/libuuid_la-randutils.lo CCLD libuuid.la /usr/bin/ld: unrecognised emulation mode: elf_i386 Supported emulations: armelf_linux_eabi armelfb_linux_eabi collect2: error: ld returned 1 exit status make: *** [libuuid.la] Error 1
The host libtool apparently calls the linker with option "-m elf_i386". So far I can't see where the "emulation mode" option "elf_i386" comes from.
"libtool --config" does not show it, and the Makefile also does not include an "elf" term.
I would like to use a BSP libtool but all I can find in the BSP regarding "libtool" is:
./board-support/packages/qt/qt-embedded-linux-opensource-src-4.5.3/src/3rdparty/libtiff/m4/libtool.m4 ./board-support/packages/csscommon/src/m4/libtool.m4
./docs/am3352/licenses/libtool ./docs/am3352/licenses/libtool-cross ./docs/am3352/licenses/libtool-native ./docs/am3352/licenses/nativesdk-libtool
- Is there a libtool for cross-building available? If so, how can I get it?
- How can I proceed in case there is not?
Thanks in advance.
By the way, the host platform I'm developing on is Linux 32bit.