mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 18:56:31 +00:00
libc/glibc-eglibc: misc janitorial cleanups.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
129bf2fa66
commit
0b773f5823
@ -10,7 +10,7 @@ do_libc_headers() {
|
|||||||
do_libc_start_files() {
|
do_libc_start_files() {
|
||||||
local src_dir="${CT_SRC_DIR}/${CT_LIBC}-${CT_LIBC_VERSION}"
|
local src_dir="${CT_SRC_DIR}/${CT_LIBC}-${CT_LIBC_VERSION}"
|
||||||
|
|
||||||
CT_DoStep INFO "Installing C library headers / start files"
|
CT_DoStep INFO "Installing C library headers & start files"
|
||||||
|
|
||||||
mkdir -p "${CT_BUILD_DIR}/build-libc-startfiles"
|
mkdir -p "${CT_BUILD_DIR}/build-libc-startfiles"
|
||||||
cd "${CT_BUILD_DIR}/build-libc-startfiles"
|
cd "${CT_BUILD_DIR}/build-libc-startfiles"
|
||||||
@ -55,10 +55,10 @@ do_libc_start_files() {
|
|||||||
|
|
||||||
# use the 'install-headers' makefile target to install the
|
# use the 'install-headers' makefile target to install the
|
||||||
# headers
|
# headers
|
||||||
CT_DoExecLog ALL \
|
CT_DoExecLog ALL make ${JOBSFLAGS} \
|
||||||
make install-headers \
|
|
||||||
install_root=${CT_SYSROOT_DIR} \
|
install_root=${CT_SYSROOT_DIR} \
|
||||||
install-bootstrap-headers=yes
|
install-bootstrap-headers=yes \
|
||||||
|
install-headers
|
||||||
|
|
||||||
# For glibc, a few headers need to be manually installed
|
# For glibc, a few headers need to be manually installed
|
||||||
if [ "${CT_LIBC}" = "glibc" ]; then
|
if [ "${CT_LIBC}" = "glibc" ]; then
|
||||||
@ -87,7 +87,7 @@ do_libc_start_files() {
|
|||||||
# there are a few object files needed to link shared libraries,
|
# there are a few object files needed to link shared libraries,
|
||||||
# which we build and install by hand
|
# which we build and install by hand
|
||||||
CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/usr/lib"
|
CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/usr/lib"
|
||||||
CT_DoExecLog ALL make csu/subdir_lib
|
CT_DoExecLog ALL make ${JOBSFLAGS} csu/subdir_lib
|
||||||
CT_DoExecLog ALL cp csu/crt1.o csu/crti.o csu/crtn.o \
|
CT_DoExecLog ALL cp csu/crt1.o csu/crti.o csu/crtn.o \
|
||||||
"${CT_SYSROOT_DIR}/usr/lib"
|
"${CT_SYSROOT_DIR}/usr/lib"
|
||||||
|
|
||||||
@ -238,12 +238,12 @@ do_libc() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
CT_DoLog EXTRA "Building C library"
|
CT_DoLog EXTRA "Building C library"
|
||||||
CT_DoExecLog ALL make -j${CT_PARALLEL_JOBS} \
|
CT_DoExecLog ALL make ${JOBSFLAGS} \
|
||||||
"${extra_make_args[@]}" \
|
"${extra_make_args[@]}" \
|
||||||
all
|
all
|
||||||
|
|
||||||
CT_DoLog EXTRA "Installing C library"
|
CT_DoLog EXTRA "Installing C library"
|
||||||
CT_DoExecLog ALL make -j${CT_PARALLEL_JOBS} \
|
CT_DoExecLog ALL make ${JOBSFLAGS} \
|
||||||
"${extra_make_args[@]}" \
|
"${extra_make_args[@]}" \
|
||||||
install_root="${CT_SYSROOT_DIR}" \
|
install_root="${CT_SYSROOT_DIR}" \
|
||||||
install
|
install
|
||||||
|
@ -5,6 +5,10 @@
|
|||||||
# Add the definitions common to glibc and eglibc
|
# Add the definitions common to glibc and eglibc
|
||||||
# do_libc_headers
|
# do_libc_headers
|
||||||
# do_libc_start_files
|
# do_libc_start_files
|
||||||
|
# do_libc
|
||||||
|
# do_libc_finish
|
||||||
|
# do_libc_add_ons_list
|
||||||
|
# do_libc_min_kernel_config
|
||||||
. "${CT_LIB_DIR}/scripts/build/libc/glibc-eglibc.sh-common"
|
. "${CT_LIB_DIR}/scripts/build/libc/glibc-eglibc.sh-common"
|
||||||
|
|
||||||
# Download glibc
|
# Download glibc
|
||||||
|
Loading…
Reference in New Issue
Block a user