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

Commit

Permalink
compilers_generic: --enable-default-pie
Browse files Browse the repository at this point in the history
  • Loading branch information
mingwandroid committed Jun 4, 2017
1 parent 7b76034 commit 0c2feca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cross-compilers/compilers_generic/write_ctng_config
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,14 @@ function write_ctng_config_before() {
echo "CT_CC_GCC_LIBQUADMATH=y" >> "${_dst}"
echo "CT_CC_GCC_USE_LTO=y" >> "${_dst}"
echo "CT_CC_GCC_ENABLE_PLUGINS=n" >> "${_dst}"
# What about:
# 1. --with-linker-hash-style=gnu (faster dynamic loading)? Should be possible
# on CentOS5.11, may be the default.
# 2. --enable-gnu-unique-object (less memory for template class statics)? From:
# https://gcc.gnu.org/install/configure.html
# Enabled by default for a toolchain with an assembler that accepts it and
# GLIBC 2.11 or above, otherwise disabled.
echo "CT_CC_GCC_EXTRA_CONFIG_ARRAY=\"--enable-default-pie\"" >> "${_dst}"
echo "CT_BINUTILS_PLUGINS=y" >> "${_dst}"

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

0 comments on commit 0c2feca

Please sign in to comment.