mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-06 01:21:42 +00:00
complibs/libelf: enable the host build
Host libelf is required by gcc-4.5.0
This commit is contained in:
parent
9962be4d9c
commit
eed8d50d02
@ -21,44 +21,40 @@ do_libelf_extract() {
|
|||||||
|
|
||||||
if [ "${CT_LIBELF}" = "y" ]; then
|
if [ "${CT_LIBELF}" = "y" ]; then
|
||||||
|
|
||||||
# Uncomment when we need it for gcc-4.5
|
|
||||||
# WARNING! This function is absolutely UNTESTED yet!
|
|
||||||
do_libelf() {
|
do_libelf() {
|
||||||
: # Remove this line! and uncomment the following lines
|
local -a libelf_opts
|
||||||
# local -a libelf_opts
|
|
||||||
#
|
CT_DoStep INFO "Installing libelf"
|
||||||
# CT_DoStep INFO "Installing libelf"
|
mkdir -p "${CT_BUILD_DIR}/build-libelf"
|
||||||
# mkdir -p "${CT_BUILD_DIR}/build-libelf"
|
CT_Pushd "${CT_BUILD_DIR}/build-libelf"
|
||||||
# CT_Pushd "${CT_BUILD_DIR}/build-libelf"
|
|
||||||
#
|
CT_DoLog EXTRA "Configuring libelf"
|
||||||
# CT_DoLog EXTRA "Configuring libelf"
|
|
||||||
#
|
if [ "${CT_COMPLIBS_SHARED}" = "y" ]; then
|
||||||
# if [ "${CT_COMPLIBS_SHARED}" = "y" ]; then
|
libelf_opts+=( --enable-shared --disable-static )
|
||||||
# libelf_opts+=( --enable-shared --disable-static )
|
else
|
||||||
# else
|
libelf_opts+=( --disable-shared --enable-static )
|
||||||
# libelf_opts+=( --disable-shared --enable-static )
|
fi
|
||||||
# fi
|
|
||||||
#
|
CT_DoExecLog ALL \
|
||||||
# CC="${CT_TARGET}-gcc" \
|
"${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure" \
|
||||||
# CT_DoExecLog ALL \
|
--build=${CT_BUILD} \
|
||||||
# "${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure" \
|
--host=${CT_HOST} \
|
||||||
# --build=${CT_BUILD} \
|
--target=${CT_TARGET} \
|
||||||
# --host=${CT_HOST} \
|
--prefix="${CT_COMPLIBS_DIR}" \
|
||||||
# --target=${CT_TARGET} \
|
--enable-compat \
|
||||||
# --prefix="${CT_COMPLIBS_DIR}" \
|
--enable-elf64 \
|
||||||
# --enable-compat \
|
--enable-extended-format \
|
||||||
# --enable-elf64 \
|
"${libelf_opts[@]}"
|
||||||
# --enable-extended-format \
|
|
||||||
# "${libelf_opts[@]}"
|
CT_DoLog EXTRA "Building libelf"
|
||||||
#
|
CT_DoExecLog ALL make
|
||||||
# CT_DoLog EXTRA "Building libelf"
|
|
||||||
# CT_DoExecLog ALL make
|
CT_DoLog EXTRA "Installing libelf"
|
||||||
#
|
CT_DoExecLog ALL make install
|
||||||
# CT_DoLog EXTRA "Installing libelf"
|
|
||||||
# CT_DoExecLog ALL make instroot="${CT_SYSROOT_DIR}" install
|
CT_Popd
|
||||||
#
|
CT_EndStep
|
||||||
# CT_Popd
|
|
||||||
# CT_EndStep
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fi # CT_LIBELF
|
fi # CT_LIBELF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user