Skip to content

Bug: When crosscompiling, wrong LD is used #466

@dummys

Description

@dummys

Hello,
I'm trying to crosscompile for android arm.
Here is my make command:

make ARCH=arm CFLAGS=-DLTC_DEBUG CROSS_COMPILE=arm-none-eabi- -f makefile.shared

The compilation went successfully but when trying to link:

/usr/bin/ld: src/ciphers/aes/.libs/aes.o: relocations in generic ELF (EM: 40)
/usr/bin/ld: src/ciphers/aes/.libs/aes.o: relocations in generic ELF (EM: 40)
/usr/bin/ld: src/ciphers/aes/.libs/aes.o: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
make: *** [makefile.shared:52: libtomcrypt.la] Error 1

It seems that it use the host ld rather than the arm-none-eabi-ld

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions