2007-07-13 12:22:34 +00:00
|
|
|
# Build script for ltrace
|
|
|
|
|
|
|
|
do_debug_ltrace_get() {
|
2017-05-30 05:32:38 +00:00
|
|
|
CT_Fetch LTRACE
|
2007-07-13 12:22:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_debug_ltrace_extract() {
|
2017-05-30 05:32:38 +00:00
|
|
|
CT_ExtractPatch LTRACE
|
2007-07-13 12:22:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_debug_ltrace_build() {
|
2010-03-06 15:05:20 +00:00
|
|
|
local ltrace_host
|
|
|
|
|
2007-07-13 12:22:34 +00:00
|
|
|
CT_DoStep INFO "Installing ltrace"
|
|
|
|
|
2008-10-24 15:40:58 +00:00
|
|
|
CT_DoLog EXTRA "Copying sources to build dir"
|
2017-05-30 05:32:38 +00:00
|
|
|
CT_DoExecLog ALL cp -av "${CT_SRC_DIR}/ltrace/." \
|
2010-01-02 17:00:54 +00:00
|
|
|
"${CT_BUILD_DIR}/build-ltrace"
|
|
|
|
CT_Pushd "${CT_BUILD_DIR}/build-ltrace"
|
2008-10-24 15:40:58 +00:00
|
|
|
|
2007-07-13 12:22:34 +00:00
|
|
|
CT_DoLog EXTRA "Configuring ltrace"
|
2017-01-23 20:29:44 +00:00
|
|
|
# ltrace-0.5.3 has a unique hand-crafted configure script. Releases
|
|
|
|
# 0.5.2 and earlier as well as 0.6.0 and later use GNU autotools.
|
|
|
|
if [ "${LTRACE_0_5_3_CONFIGURE}" = "y" ]; then
|
2010-03-06 15:05:20 +00:00
|
|
|
case "${CT_ARCH}:${CT_ARCH_BITNESS}" in
|
2010-03-07 11:30:01 +00:00
|
|
|
x86:32) ltrace_host="i386";;
|
|
|
|
x86:64) ltrace_host="x86_64";;
|
|
|
|
powerpc:*) ltrace_host="ppc";;
|
2011-01-08 17:07:02 +00:00
|
|
|
mips:*) ltrace_host="mipsel";;
|
2010-03-07 11:30:01 +00:00
|
|
|
*) ltrace_host="${CT_ARCH}";;
|
2010-03-06 15:05:20 +00:00
|
|
|
esac
|
2011-03-20 00:03:26 +00:00
|
|
|
CT_DoExecLog CFG \
|
2010-03-06 15:05:20 +00:00
|
|
|
CC="${CT_TARGET}-${CT_CC}" \
|
2011-08-22 07:26:02 +00:00
|
|
|
AR="${CT_TARGET}-ar" \
|
2010-03-06 15:05:20 +00:00
|
|
|
HOST="${ltrace_host}" \
|
2011-08-22 07:26:02 +00:00
|
|
|
HOST_OS="${CT_TARGET_KERNEL}" \
|
2018-05-26 06:57:29 +00:00
|
|
|
CFLAGS="${CT_ALL_TARGET_CFLAGS}"\
|
2017-01-25 08:06:28 +00:00
|
|
|
${CONFIG_SHELL} \
|
2011-03-20 00:03:26 +00:00
|
|
|
./configure --prefix=/usr
|
2010-01-03 15:46:58 +00:00
|
|
|
else
|
2010-10-22 20:02:57 +00:00
|
|
|
CT_DoExecLog CFG \
|
2017-01-25 08:06:28 +00:00
|
|
|
${CONFIG_SHELL} \
|
2010-01-03 15:46:58 +00:00
|
|
|
./configure \
|
|
|
|
--build=${CT_BUILD} \
|
|
|
|
--host=${CT_TARGET} \
|
|
|
|
--prefix=/usr
|
|
|
|
fi
|
2007-07-13 12:22:34 +00:00
|
|
|
|
|
|
|
CT_DoLog EXTRA "Building ltrace"
|
2016-11-21 07:50:17 +00:00
|
|
|
CT_DoExecLog ALL make
|
2007-07-13 12:22:34 +00:00
|
|
|
|
|
|
|
CT_DoLog EXTRA "Installing ltrace"
|
2016-11-21 07:50:17 +00:00
|
|
|
CT_DoExecLog ALL make DESTDIR="${CT_DEBUGROOT_DIR}" install
|
2007-07-13 12:22:34 +00:00
|
|
|
|
|
|
|
CT_Popd
|
|
|
|
CT_EndStep
|
|
|
|
}
|