Skip to content
This repository was archived by the owner on Sep 29, 2022. It is now read-only.

Commit 046863a

Browse files
committed
compilers_generic: --enable-default-pie
1 parent 7b76034 commit 046863a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cross-compilers/compilers_generic/write_ctng_config

+8
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,14 @@ function write_ctng_config_before() {
163163
echo "CT_CC_GCC_LIBQUADMATH=y" >> "${_dst}"
164164
echo "CT_CC_GCC_USE_LTO=y" >> "${_dst}"
165165
echo "CT_CC_GCC_ENABLE_PLUGINS=n" >> "${_dst}"
166+
# What about:
167+
# 1. --with-linker-hash-style=gnu (faster dynamic loading)? Should be possible
168+
# on CentOS5.11, may be the default.
169+
# 2. --enable-gnu-unique-object (less memory for template class statics)? From:
170+
# https://gcc.gnu.org/install/configure.html
171+
# Enabled by default for a toolchain with an assembler that accepts it and
172+
# GLIBC 2.11 or above, otherwise disabled.
173+
echo "CT_CC_GCC_EXTRA_CONFIG_ARRAY=--enable-default-pie" >> "${_dst}"
166174
echo "CT_BINUTILS_PLUGINS=y" >> "${_dst}"
167175

168176
# TODO :: This is freescale imx351 and an exact hardware device. It would be better

0 commit comments

Comments
 (0)