File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed
Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -216,13 +216,20 @@ $(host_prefix)/.stamp_$(final_build_id): $(native_packages) $(packages)
216216$(host_prefix ) /share/config.site : config.site.in $(host_prefix ) /.stamp_$(final_build_id )
217217 @mkdir -p $(@D )
218218 sed -e ' s|@HOST@|$(host)|' \
219+ -e 's|@CC_FOR_BUILD@|$(build_CC)|' \
220+ -e 's|@CXX_FOR_BUILD@|$(build_CXX)|' \
221+ -e 's|@AR_FOR_BUILD@|$(build_AR)|' \
222+ -e 's|@TAR_FOR_BUILD@|$(build_TAR)|' \
223+ -e 's|@RANLIB_FOR_BUILD@|$(build_RANLIB)|' \
224+ -e 's|@NM_FOR_BUILD@|$(build_NM)|' \
225+ -e 's|@STRIP_FOR_BUILD@|$(build_STRIP)|' \
226+ -e 's|@build_os@|$(build_os)|' \
219227 -e 's|@CC@|$(host_CC)|' \
220228 -e 's|@CXX@|$(host_CXX)|' \
221229 -e 's|@AR@|$(host_AR)|' \
222230 -e 's|@RANLIB@|$(host_RANLIB)|' \
223231 -e 's|@NM@|$(host_NM)|' \
224232 -e 's|@STRIP@|$(host_STRIP)|' \
225- -e 's|@build_os@|$(build_os)|' \
226233 -e 's|@host_os@|$(host_os)|' \
227234 -e 's|@CFLAGS@|$(strip $(host_CFLAGS) $(host_$(release_type)_CFLAGS))|' \
228235 -e 's|@CXXFLAGS@|$(strip $(host_CXXFLAGS) $(host_$(release_type)_CXXFLAGS))|' \
Original file line number Diff line number Diff line change 9292CPPFLAGS="-I${depends_prefix}/include/ ${CPPFLAGS}"
9393LDFLAGS="-L${depends_prefix}/lib ${LDFLAGS}"
9494
95+ if test -n "@CC_FOR_BUILD@" -a -z "${CC_FOR_BUILD}"; then
96+ CC_FOR_BUILD="@CC_FOR_BUILD@"
97+ fi
98+ if test -n "@CXX_FOR_BUILD@" -a -z "${CXX_FOR_BUILD}"; then
99+ CXX_FOR_BUILD="@CXX_FOR_BUILD@"
100+ fi
101+ if test -n "@AR_FOR_BUILD@"; then
102+ AR_FOR_BUILD="@AR_FOR_BUILD@"
103+ fi
104+ if test -n "@TAR_FOR_BUILD@"; then
105+ TAR_FOR_BUILD="@TAR_FOR_BUILD@"
106+ fi
107+ if test -n "@RANLIB_FOR_BUILD@"; then
108+ RANLIB_FOR_BUILD="@RANLIB_FOR_BUILD@"
109+ fi
110+ if test -n "@NM_FOR_BUILD@"; then
111+ NM_FOR_BUILD="@NM_FOR_BUILD@"
112+ fi
113+ if test -n "@STRIP_FOR_BUILD@"; then
114+ STRIP_FOR_BUILD="@STRIP_FOR_BUILD@"
115+ fi
116+
95117if test -n "@CC@" -a -z "${CC}"; then
96118 CC="@CC@"
97119fi
You can’t perform that action at this time.
0 commit comments