Skip to content

Commit d61f667

Browse files
committed
build: Add objcopy host tool
Qt's mkspec references the objcopy tool.
1 parent a2e733b commit d61f667

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

depends/hosts/default.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ default_host_RANLIB = $(host_toolchain)ranlib
99
default_host_STRIP = $(host_toolchain)strip
1010
default_host_LIBTOOL = $(host_toolchain)libtool
1111
default_host_NM = $(host_toolchain)nm
12+
default_host_OBJCOPY = $(host_toolchain)objcopy
1213

1314
define add_host_tool_func
1415
ifneq ($(filter $(origin $1),undefined default),)
@@ -33,5 +34,5 @@ host_$1 = $$($(host_arch)_$(host_os)_$1)
3334
host_$(release_type)_$1 = $$($(host_arch)_$(host_os)_$(release_type)_$1)
3435
endef
3536

36-
$(foreach tool,CC CXX AR RANLIB STRIP NM LIBTOOL OTOOL INSTALL_NAME_TOOL DSYMUTIL,$(eval $(call add_host_tool_func,$(tool))))
37+
$(foreach tool,CC CXX AR RANLIB STRIP LIBTOOL NM OBJCOPY OTOOL INSTALL_NAME_TOOL DSYMUTIL,$(eval $(call add_host_tool_func,$(tool))))
3738
$(foreach flags,CFLAGS CXXFLAGS CPPFLAGS LDFLAGS, $(eval $(call add_host_flags_func,$(flags))))

0 commit comments

Comments
 (0)