debian-hardened-buildflags-no-LO-fstack-protector-strong
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Fri, 6 Sep 2019 14:06:05 +0000 (15:06 +0100)
committerRene Engelhard <rene@debian.org>
Fri, 6 Sep 2019 14:06:05 +0000 (15:06 +0100)
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 f41df4c2d5242c05ce6c7d7e9990649f33d88321..6efaade1965492a9a2ea7c0105b7040e33b506fd 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 7ce1833d57baef79acec0140e113025ccf7432a6..4d3b02a37b98c69762c50400e5739cbabe2eb241 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