2010-01-12 21:47:57 +00:00
|
|
|
# Build script for libtool
|
|
|
|
|
2018-11-19 15:17:37 -08:00
|
|
|
do_companion_tools_libtool_get()
|
|
|
|
{
|
2017-05-29 22:32:38 -07:00
|
|
|
CT_Fetch LIBTOOL
|
2010-01-12 21:47:57 +00:00
|
|
|
}
|
|
|
|
|
2018-11-19 15:17:37 -08:00
|
|
|
do_companion_tools_libtool_extract()
|
|
|
|
{
|
2017-05-29 22:32:38 -07:00
|
|
|
CT_ExtractPatch LIBTOOL
|
2010-01-12 21:47:57 +00:00
|
|
|
}
|
|
|
|
|
2018-11-19 15:17:37 -08:00
|
|
|
do_companion_tools_libtool_for_build()
|
|
|
|
{
|
2017-01-23 18:48:22 -08:00
|
|
|
CT_DoStep INFO "Installing libtool for build"
|
2016-11-28 16:55:22 -08:00
|
|
|
CT_mkdir_pushd "${CT_BUILD_DIR}/build-libtool-build"
|
|
|
|
do_libtool_backend host=${CT_BUILD} prefix="${CT_BUILD_COMPTOOLS_DIR}"
|
|
|
|
CT_Popd
|
|
|
|
CT_EndStep
|
|
|
|
}
|
|
|
|
|
2018-11-19 15:17:37 -08:00
|
|
|
do_companion_tools_libtool_for_host()
|
|
|
|
{
|
2017-01-23 18:48:22 -08:00
|
|
|
CT_DoStep INFO "Installing libtool for host"
|
2016-11-28 16:55:22 -08:00
|
|
|
CT_mkdir_pushd "${CT_BUILD_DIR}/build-libtool-host"
|
|
|
|
do_libtool_backend host=${CT_HOST} prefix="${CT_PREFIX_DIR}"
|
|
|
|
CT_Popd
|
|
|
|
CT_EndStep
|
|
|
|
}
|
|
|
|
|
2018-11-19 15:17:37 -08:00
|
|
|
do_libtool_backend()
|
|
|
|
{
|
2016-11-28 16:55:22 -08:00
|
|
|
local host
|
|
|
|
local prefix
|
|
|
|
|
|
|
|
for arg in "$@"; do
|
|
|
|
eval "${arg// /\\ }"
|
|
|
|
done
|
|
|
|
|
2016-11-22 18:10:23 -08:00
|
|
|
CT_DoLog EXTRA "Configuring libtool"
|
2017-01-25 00:06:28 -08:00
|
|
|
CT_DoExecLog CFG \
|
|
|
|
${CONFIG_SHELL} \
|
2017-05-29 22:32:38 -07:00
|
|
|
"${CT_SRC_DIR}/libtool/configure" \
|
2016-11-28 16:55:22 -08:00
|
|
|
--host="${host}" \
|
|
|
|
--prefix="${prefix}"
|
2016-11-22 18:10:23 -08:00
|
|
|
|
|
|
|
CT_DoLog EXTRA "Building libtool"
|
2016-11-20 23:50:17 -08:00
|
|
|
CT_DoExecLog ALL make
|
2016-11-22 18:10:23 -08:00
|
|
|
|
|
|
|
CT_DoLog EXTRA "Installing libtool"
|
2016-11-20 23:50:17 -08:00
|
|
|
CT_DoExecLog ALL make install
|
2010-01-12 21:47:57 +00:00
|
|
|
}
|