What is purpose of TARGET_ARCH variable in Makefiles

孤街浪徒 提交于 2019-12-10 12:54:43

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/18476490/what-is-purpose-of-target-arch-variable-in-makefiles

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!