10

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.

BoatX
  • 153
  • 1
  • 6

1 Answers1

3

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.

sager89
  • 940
  • 1
  • 12
  • 25