mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-05-31 06:41:09 +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
|
||||
|
||||
CC="${CT_HOST}-gcc" \
|
||||
CFLAGS="-fPIC" \
|
||||
CT_DoExecLog CFG \
|
||||
"${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
@ -69,6 +70,7 @@ do_libelf_target() {
|
||||
|
||||
CT_DoLog EXTRA "Configuring libelf"
|
||||
CC="${CT_TARGET}-gcc" \
|
||||
CFLAGS="-fPIC" \
|
||||
CT_DoExecLog ALL \
|
||||
"${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
|
Loading…
x
Reference in New Issue
Block a user