mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-24 15:06:42 +00:00
488b27f58b
The referenced commit replaced 'make' with '${make}' everywhere. This is wrong for at least the utilities that we may build as companion tools (make, libtool): this will always invoke the version detected by configure by supplying the absolute path. In other words, the wrappers in .build/tools/bin are not fallbacks - they are either temporary (in case a respective companion tool is built) or permanent redirectors. This is the reason why the PATH= has .build/*/buildtools/bin at higher precedence than .build/tools/bin; the latter has the versions detected by configure and the former has the versions built as companion tools. Revert the rest of the gang (grep/sed/...) for consistency. After all, we may decide to supply some of them as well (awk, for instance). Signed-off-by: Alexey Neyman <stilor@att.net>
35 lines
999 B
Bash
35 lines
999 B
Bash
# Template file for a debug utility
|
|
|
|
# Put your download code here
|
|
do_debug_foobar_get() {
|
|
# For example:
|
|
# CT_GetFile "foobar-${CT_FOOBAR_VERSION}" http://foobar.com/releases/
|
|
:
|
|
}
|
|
|
|
# Put your extract code here
|
|
do_debug_foobar_extract() {
|
|
# For example:
|
|
# CT_Extract "foobar-${CT_FOOBAR_VERSION}"
|
|
# CT_Patch "foobar" "${CT_FOOBAR_VERSION}"
|
|
:
|
|
}
|
|
|
|
# Put your build code here
|
|
do_debug_foobar_build() {
|
|
# For example:
|
|
# mkdir -p "${CT_BUILD_DIR}/build-foobar"
|
|
# CT_Pushd "${CT_BUILD_DIR}/build-foobar"
|
|
# CT_DoExecLog CFG \
|
|
# "${CT_SRC_DIR}/foobar-${CT_FOOBAR_VERSION}/configure" \
|
|
# --build=${CT_BUILD} \
|
|
# --host=${CT_TARGET} \
|
|
# --prefix=/usr \
|
|
# --foobar-options
|
|
# CT_DoExecLog ALL make
|
|
# CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" install
|
|
# CT_Popd
|
|
:
|
|
}
|
|
|