mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-01 15:20:54 +00:00
complibs/libelf: build with -fPIC
libelf is used by gcc to build the lto-plugin used by binutils' gold to perform LTO. This requires that files in libelf be compiled with -fPIC to generate a proper .so. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
e0c067dc3e
commit
b0c69b3cdc
@ -37,6 +37,7 @@ do_libelf() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
CC="${CT_HOST}-gcc" \
|
CC="${CT_HOST}-gcc" \
|
||||||
|
CFLAGS="-fPIC" \
|
||||||
CT_DoExecLog CFG \
|
CT_DoExecLog CFG \
|
||||||
"${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure" \
|
"${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure" \
|
||||||
--build=${CT_BUILD} \
|
--build=${CT_BUILD} \
|
||||||
@ -69,6 +70,7 @@ do_libelf_target() {
|
|||||||
|
|
||||||
CT_DoLog EXTRA "Configuring libelf"
|
CT_DoLog EXTRA "Configuring libelf"
|
||||||
CC="${CT_TARGET}-gcc" \
|
CC="${CT_TARGET}-gcc" \
|
||||||
|
CFLAGS="-fPIC" \
|
||||||
CT_DoExecLog ALL \
|
CT_DoExecLog ALL \
|
||||||
"${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure" \
|
"${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure" \
|
||||||
--build=${CT_BUILD} \
|
--build=${CT_BUILD} \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user