I have noticed that in Implicit Rules in Gnu Make is variable $(TARGET_ARCH) for example :
$(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@
LINK.o = $(CC) $(LDFLAGS) $(TARGET_ARCH)
I supposed that this variable is needed for cross compilation, but I haven't found any information about it in Gnu Make documentation.
I agree that it's probably meant for cross-compilation. The variable TARGET_ARCH has no default value - it's there for end-users to define as they see fit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With