debian-hardened-buildflags-no-LO-fstack-protector-strong
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Wed, 20 Nov 2019 13:15:21 +0000 (13:15 +0000)
committerRene Engelhard <rene@debian.org>
Wed, 20 Nov 2019 13:15:21 +0000 (13:15 +0000)
don't hardcode -fstack-protector-strong in configure.ac/gbuild. We get the
hardening flags from dpkg-buildflags anyway.

Gbp-Pq: Name debian-hardened-buildflags-no-LO-fstack-protector-strong.diff

config_host.mk.in
configure.ac
solenv/gbuild/platform/com_GCC_defs.mk

index 351153098157cf68e24fe9358ce48f914bc2e692..a16ec11e95ef048ba99deca4216a46b6ce9187ec 100644 (file)
@@ -253,7 +253,6 @@ export USING_X11=@USING_X11@
 export HAMCREST_JAR=@HAMCREST_JAR@
 export HAVE_BROKEN_GCC_WMAYBE_UNINITIALIZED=@HAVE_BROKEN_GCC_WMAYBE_UNINITIALIZED@
 export HAVE_GCC_AVX=@HAVE_GCC_AVX@
-export HAVE_GCC_STACK_PROTECTOR_STRONG=@HAVE_GCC_STACK_PROTECTOR_STRONG@
 export HAVE_GCC_BUILTIN_ATOMIC=@HAVE_GCC_BUILTIN_ATOMIC@
 export HAVE_GCC_BUILTIN_FFS=@HAVE_GCC_BUILTIN_FFS@
 export HAVE_GCC_FNO_ENFORCE_EH_SPECS=@HAVE_GCC_FNO_ENFORCE_EH_SPECS@
index d676d33c20d2d3690ae4cca7f57be2c30d75a69f..8bee8a65003eda9b0e56db5b1ca3e63e5810de20 100644 (file)
Binary files a/configure.ac and b/configure.ac differ
index d3c546549d574992dcc5f83d74a73e08b89b1a84..212da02283d45259581167bde52e0fa1a69c499d 100644 (file)
@@ -135,12 +135,6 @@ endif
 gb_VISIBILITY_FLAGS_CXX := -fvisibility-inlines-hidden
 gb_CXXFLAGS_COMMON += $(gb_VISIBILITY_FLAGS_CXX)
 
-ifeq ($(HAVE_GCC_STACK_PROTECTOR_STRONG),TRUE)
-gb_CFLAGS_COMMON += -fstack-protector-strong
-gb_CXXFLAGS_COMMON += -fstack-protector-strong
-gb_LinkTarget_LDFLAGS += -fstack-protector-strong
-endif
-
 ifneq ($(ENABLE_PCH),)
 ifeq ($(COM_IS_CLANG),TRUE)
 # Clang by default includes in the PCH timestamps of the files it was