Skip to content

Commit 416e154

Browse files
committed
merge bitcoin#24866: No longer need to hack the PATH variable in config.site
includes: - f3af4f7 - efa3a80 continuation of 9e0b935 from dash#6384
1 parent a5787c9 commit 416e154

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed

depends/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ $(host_prefix)/share/config.site : config.site.in $(host_prefix)/.stamp_$(final_
227227
-e 's|@NM@|$(host_NM)|' \
228228
-e 's|@STRIP@|$(host_STRIP)|' \
229229
-e 's|@OBJDUMP@|$(host_OBJDUMP)|' \
230+
-e 's|@DSYMUTIL@|$(host_DSYMUTIL)|' \
230231
-e 's|@build_os@|$(build_os)|' \
231232
-e 's|@host_os@|$(host_os)|' \
232233
-e 's|@CFLAGS@|$(strip $(host_CFLAGS) $(host_$(release_type)_CFLAGS))|' \

depends/builders/darwin.mk

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ build_darwin_RANLIB:=$(shell xcrun -f ranlib)
55
build_darwin_STRIP:=$(shell xcrun -f strip)
66
build_darwin_OBJDUMP:=$(shell xcrun -f objdump)
77
build_darwin_NM:=$(shell xcrun -f nm)
8+
build_darwin_DSYMUTIL:=$(shell xcrun -f dsymutil)
89
build_darwin_SHA256SUM=shasum -a 256
910
build_darwin_DOWNLOAD=curl --location --fail --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -o
1011

@@ -16,6 +17,7 @@ darwin_RANLIB:=$(shell xcrun -f ranlib)
1617
darwin_STRIP:=$(shell xcrun -f strip)
1718
darwin_OBJDUMP:=$(shell xcrun -f objdump)
1819
darwin_NM:=$(shell xcrun -f nm)
20+
darwin_DSYMUTIL:=$(shell xcrun -f dsymutil)
1921
darwin_native_binutils=
2022
darwin_native_toolchain=
2123

depends/builders/default.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ build_$(build_os)_$1 ?= $$(default_build_$1)
1313
build_$(build_arch)_$(build_os)_$1 ?= $$(build_$(build_os)_$1)
1414
build_$1=$$(build_$(build_arch)_$(build_os)_$1)
1515
endef
16-
$(foreach var,CC CXX AR TAR RANLIB NM STRIP SHA256SUM DOWNLOAD OBJDUMP TOUCH,$(eval $(call add_build_tool_func,$(var))))
16+
$(foreach var,CC CXX AR TAR RANLIB NM STRIP SHA256SUM DOWNLOAD OBJDUMP DSYMUTIL TOUCH,$(eval $(call add_build_tool_func,$(var))))
1717
define add_build_flags_func
1818
build_$(build_arch)_$(build_os)_$1 += $(build_$(build_os)_$1)
1919
build_$1=$$(build_$(build_arch)_$(build_os)_$1)

depends/config.site.in

+5-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ if test "@host_os@" = darwin; then
7878
BREW=no
7979
fi
8080

81-
PATH="${depends_prefix}/native/bin:${PATH}"
8281
PKG_CONFIG="$(which pkg-config) --static"
8382

8483
# These two need to remain exported because pkg-config does not see them
@@ -125,6 +124,11 @@ if test "@host_os@" = darwin; then
125124
OBJDUMP="@OBJDUMP@"
126125
ac_cv_path_ac_pt_OBJDUMP="${OBJDUMP}"
127126
fi
127+
128+
if test -n "@DSYMUTIL@"; then
129+
DSYMUTIL="@DSYMUTIL@"
130+
ac_cv_path_ac_pt_DSYMUTIL="${DSYMUTIL}"
131+
fi
128132
fi
129133

130134
if test -n "@debug@"; then

depends/hosts/darwin.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ llvm_lib_dir=$(shell $(llvm_config_prog) --libdir)
4343
darwin_OBJDUMP=$(shell $(SHELL) $(.SHELLFLAGS) "command -v llvm-objdump")
4444
endif
4545

46-
cctools_TOOLS=AR RANLIB STRIP NM
46+
cctools_TOOLS=AR RANLIB STRIP NM DSYMUTIL
4747

4848
# Make-only lowercase function
4949
lc = $(subst A,a,$(subst B,b,$(subst C,c,$(subst D,d,$(subst E,e,$(subst F,f,$(subst G,g,$(subst H,h,$(subst I,i,$(subst J,j,$(subst K,k,$(subst L,l,$(subst M,m,$(subst N,n,$(subst O,o,$(subst P,p,$(subst Q,q,$(subst R,r,$(subst S,s,$(subst T,t,$(subst U,u,$(subst V,v,$(subst W,w,$(subst X,x,$(subst Y,y,$(subst Z,z,$1))))))))))))))))))))))))))

depends/hosts/default.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ host_$1 = $$($(host_arch)_$(host_os)_$1)
3838
host_$(release_type)_$1 = $$($(host_arch)_$(host_os)_$(release_type)_$1)
3939
endef
4040

41-
$(foreach tool,CC CXX AR RANLIB STRIP NM OBJCOPY OBJDUMP,$(eval $(call add_host_tool_func,$(tool))))
41+
$(foreach tool,CC CXX AR RANLIB STRIP NM OBJCOPY OBJDUMP DSYMUTIL,$(eval $(call add_host_tool_func,$(tool))))
4242
$(foreach flags,CFLAGS CXXFLAGS CPPFLAGS LDFLAGS, $(eval $(call add_host_flags_func,$(flags))))

0 commit comments

Comments
 (0)