debian-hardened-buildflags-no-LO-fstack-protector-strong
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Wed, 3 Oct 2018 02:27:03 +0000 (03:27 +0100)
committerRaspbian forward porter <root@raspbian.org>
Wed, 3 Oct 2018 02:27:03 +0000 (03:27 +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 ec167b7a091fad730ae1995a33e7114626a27b7b..e51089cf57ebab706f6815718a084733eb744f4b 100644 (file)
@@ -240,7 +240,6 @@ export GTK_PRINT_LIBS=$(gb_SPACE)@GTK_PRINT_LIBS@
 export USING_X11=@USING_X11@
 export HAMCREST_JAR=@HAMCREST_JAR@
 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_FINLINE_LIMIT=@HAVE_GCC_FINLINE_LIMIT@
index 94785bccbb49cb6d4354467a8e03c6c5cab5ba12..d9ca18907f3f1e250817fb3be8a2265c32637f4e 100644 (file)
Binary files a/configure.ac and b/configure.ac differ
index 440c87df3ca56e83ff71807d3b59fbf2eced25c7..140b49971f5797e5af41de62c7a20555416ec784 100644 (file)
@@ -125,12 +125,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
-
 ifeq ($(ENABLE_PCH),TRUE)
 ifneq ($(COM_IS_CLANG),TRUE)
 gb_CFLAGS_COMMON += -fpch-preprocess -Winvalid-pch