Mercurial > mxe-octave
changeset 6410:7de412374c48
* src/build-gcc.mk: enable build ssp
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Fri, 16 Sep 2022 12:23:09 -0400 |
parents | a41bc595077f |
children | 7bb715afe813 |
files | src/build-gcc.mk |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/build-gcc.mk Fri Sep 16 10:06:33 2022 -0400 +++ b/src/build-gcc.mk Fri Sep 16 12:23:09 2022 -0400 @@ -98,6 +98,13 @@ $(MAKE) -C '$(1).pthreads' -j '$(JOBS)' || $(MAKE) -C '$(1).pthreads' -j '$(JOBS)' $(MAKE) -C '$(1).pthreads' -j 1 install endef + + define $(PKG)_POST_BUILD + # overwrite default specs to mimic stack protector handling of glibc + # ./configure above doesn't do this + '$(TARGET)-gcc' -dumpspecs > '$(BUILD_TOOLS_PREFIX)/lib/gcc/$(TARGET)/$($(PKG)_VERSION)/specs' + $(SED) -i 's,-lmingwex,-lmingwex -lssp_nonshared -lssp,' '$(BUILD_TOOLS_PREFIX)/lib/gcc/$(TARGET)/$($(PKG)_VERSION)/specs' + endef endif ifneq ($(MXE_NATIVE_BUILD),yes) @@ -135,6 +142,7 @@ $($(PKG)_SYSDEP_CONFIGURE_OPTIONS) \ $(ENABLE_SHARED_OR_STATIC) \ --disable-libgomp \ + --enable-default-ssp \ --with-cloog='$(BUILD_TOOLS_PREFIX)' \ --with-gmp='$(BUILD_TOOLS_PREFIX)' \ --with-isl='$(BUILD_TOOLS_PREFIX)' \