On Sun, Oct 10, 2021 at 6:45 PM JH <jupiter.hce@...> wrote:
I have following errors:
No GNU_HASH in the ELF binary
didn't pass LDFLAGS? [ldflags]
So I add --hash-style=gnu to my Makefile:
LD_FLAGS += --hash-style=gnu
LDFLAGS = LD_FLAGS
But that does not work:
arm-oe-linux-gnueabi-gcc: error: unrecognized command line option
What is wrong about the error if the --hash-style=gnu is not the right fix?
So it seems your makefile is not respecting the LDFLAGS coming from
the environment during linking.
perhaps you should fix that in your linking rules. hardcoding hash
style like this is not portable.