What is the purpose of the TARGET_ARCH variable in the Makefile

I noticed that in implicit rules in Gnu Make there is a variable $ (TARGET_ARCH), for example:

$(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@ LINK.o = $(CC) $(LDFLAGS) $(TARGET_ARCH) 

I assumed that this variable is necessary for cross-compiling, but I did not find any information about this in the Gnu Make documentation.

+8
makefile gnu-make
source share
1 answer

I agree that this probably meant cross-compiling. The TARGET_ARCH variable does not have a default value - where end users can determine how they see fit.

+2
source share

All Articles