build: don't use install_name_tool for macOS deploy when cross-compiling

This is only needed when compiling on macOS. This means we can also
better scope the usage of `-headerpad_max_install_names`.
This commit is contained in:
fanquake committed 2024-04-17 11:40:25 +01:00
1 parent 78b6b5c485
commit 3bee51427a
9 files changed
+6 -16

No files matched your search

+1 -1
View File
@@ -38,5 +38,5 @@ host_$1 = $$($(host_arch)_$(host_os)_$1)
host_$(release_type)_$1 = $$($(host_arch)_$(host_os)_$(release_type)_$1)
endef
$(foreach tool,CC CXX AR RANLIB STRIP NM OBJCOPY OTOOL INSTALL_NAME_TOOL DSYMUTIL,$(eval $(call add_host_tool_func,$(tool))))
$(foreach tool,CC CXX AR RANLIB STRIP NM OBJCOPY OTOOL DSYMUTIL,$(eval $(call add_host_tool_func,$(tool))))
$(foreach flags,CFLAGS CXXFLAGS CPPFLAGS LDFLAGS, $(eval $(call add_host_flags_func,$(flags))))