2007-07-13 12:22:34 +00:00
|
|
|
# Build script for libelf
|
|
|
|
|
|
|
|
do_tools_libelf_get() {
|
|
|
|
# The server hosting libelf will return an "HTTP 300 : Multiple Choices"
|
|
|
|
# error code if we try to download a file that does not exists there.
|
|
|
|
# So we have to request the file with an explicit extension.
|
|
|
|
CT_GetFile "libelf-${CT_LIBELF_VERSION}" .tar.gz http://www.mr511.de/software/
|
|
|
|
}
|
|
|
|
|
|
|
|
do_tools_libelf_extract() {
|
2009-01-05 23:02:43 +00:00
|
|
|
CT_Extract "libelf-${CT_LIBELF_VERSION}"
|
|
|
|
CT_Patch "libelf-${CT_LIBELF_VERSION}"
|
2007-07-13 12:22:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_tools_libelf_build() {
|
|
|
|
CT_DoStep INFO "Installing libelf"
|
|
|
|
mkdir -p "${CT_BUILD_DIR}/build-libelf"
|
|
|
|
CT_Pushd "${CT_BUILD_DIR}/build-libelf"
|
|
|
|
|
|
|
|
CT_DoLog EXTRA "Configuring libelf"
|
|
|
|
CC="${CT_TARGET}-gcc" \
|
2008-07-14 15:58:39 +00:00
|
|
|
CT_DoExecLog ALL \
|
2007-07-13 12:22:34 +00:00
|
|
|
"${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure" \
|
|
|
|
--build=${CT_BUILD} \
|
|
|
|
--host=${CT_TARGET} \
|
|
|
|
--target=${CT_TARGET} \
|
|
|
|
--prefix=/usr \
|
|
|
|
--enable-compat \
|
|
|
|
--enable-elf64 \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-extended-format \
|
2008-07-14 15:58:39 +00:00
|
|
|
--enable-static
|
2007-07-13 12:22:34 +00:00
|
|
|
|
|
|
|
CT_DoLog EXTRA "Building libelf"
|
2008-07-14 15:58:39 +00:00
|
|
|
CT_DoExecLog ALL make
|
2007-07-13 12:22:34 +00:00
|
|
|
|
|
|
|
CT_DoLog EXTRA "Installing libelf"
|
2008-07-14 15:58:39 +00:00
|
|
|
CT_DoExecLog ALL make instroot="${CT_SYSROOT_DIR}" install
|
2007-07-13 12:22:34 +00:00
|
|
|
|
|
|
|
CT_Popd
|
|
|
|
CT_EndStep
|
|
|
|
}
|
|
|
|
|