gcc: pass explicit gcc_cv_libc_provides_ssp also to gcc-final
During the gcc-initial build, we already pass gcc_cv_libc_provides_ssp=yes explicitly when SSP support will be available in the C library: at this point in time the C library is not yet built, so gcc cannot detect if it will support SSP or not. However, it turns out that there are some situations for which it is also useful to tell gcc explicitly whether the SSP support is available or not: the gcc logic to decide whether uClibc has SSP support or not is broken since uClibc-ng bumped the glibc version it pretends to be. So, this commit makes sure that we explicitly pass gcc_cv_libc_provides_ssp both to gcc-initial and gcc-final, and that we're always passing either 'yes' or 'no'. Fixes: http://autobuild.buildroot.org/results/778/778e6309ba834cc70f8243a4f6c664c0bcaeb7c5/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
e811f51549
commit
a7463a6c81
@ -85,6 +85,8 @@ HOST_GCC_FINAL_CONF_OPTS += \
|
||||
HOST_GCC_FINAL_CONF_ENV = \
|
||||
$(HOST_GCC_COMMON_CONF_ENV)
|
||||
|
||||
HOST_GCC_FINAL_MAKE_OPTS += $(HOST_GCC_COMMON_MAKE_OPTS)
|
||||
|
||||
# Make sure we have 'cc'
|
||||
define HOST_GCC_FINAL_CREATE_CC_SYMLINKS
|
||||
if [ ! -e $(HOST_DIR)/usr/bin/$(GNU_TARGET_NAME)-cc ]; then \
|
||||
|
@ -51,10 +51,7 @@ HOST_GCC_INITIAL_CONF_OPTS = \
|
||||
HOST_GCC_INITIAL_CONF_ENV = \
|
||||
$(HOST_GCC_COMMON_CONF_ENV)
|
||||
|
||||
# We need to tell gcc that the C library will be providing the ssp
|
||||
# support, as it can't guess it since the C library hasn't been built
|
||||
# yet (we're gcc-initial).
|
||||
HOST_GCC_INITIAL_MAKE_OPTS = $(if $(BR2_TOOLCHAIN_HAS_SSP),gcc_cv_libc_provides_ssp=yes) all-gcc
|
||||
HOST_GCC_INITIAL_MAKE_OPTS = $(HOST_GCC_COMMON_MAKE_OPTS) all-gcc
|
||||
HOST_GCC_INITIAL_INSTALL_OPTS = install-gcc
|
||||
|
||||
ifeq ($(BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE),y)
|
||||
|
@ -238,6 +238,16 @@ endif
|
||||
|
||||
HOST_GCC_COMMON_TOOLCHAIN_WRAPPER_ARGS += -DBR_CROSS_PATH_SUFFIX='".br_real"'
|
||||
|
||||
# For gcc-initial, we need to tell gcc that the C library will be
|
||||
# providing the ssp support, as it can't guess it since the C library
|
||||
# hasn't been built yet.
|
||||
#
|
||||
# For gcc-final, the gcc logic to detect whether SSP support is
|
||||
# available or not in the C library is not working properly for
|
||||
# uClibc, so let's be explicit as well.
|
||||
HOST_GCC_COMMON_MAKE_OPTS = \
|
||||
gcc_cv_libc_provides_ssp=$(if $(BR2_TOOLCHAIN_HAS_SSP),yes,no)
|
||||
|
||||
ifeq ($(BR2_CCACHE),y)
|
||||
HOST_GCC_COMMON_CCACHE_HASH_FILES += $(DL_DIR)/$(GCC_SOURCE)
|
||||
# Cfr. PATCH_BASE_DIRS in .stamp_patched, but we catch both versioned and
|
||||
|
Loading…
Reference in New Issue
Block a user