debian-hardened-buildflags-no-LO-fstack-protector-strong
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Sun, 21 Jun 2020 11:07:16 +0000 (12:07 +0100)
committerRene Engelhard <rene@debian.org>
Sun, 21 Jun 2020 11:07:16 +0000 (12:07 +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

solenv/gbuild/platform/com_GCC_defs.mk

index 84d26a74a3fd9d79ed9dd6b012281b7012baa1b0..0d50f538ba7b9e3d49cb8a878efb242e04a50c8e 100644 (file)
@@ -67,7 +67,6 @@ gb_CFLAGS_COMMON := \
        -fmessage-length=0 \
        -fno-common \
        -pipe \
-       -fstack-protector-strong \
 
 gb_CXXFLAGS_COMMON := \
        -Wall \
@@ -82,7 +81,6 @@ gb_CXXFLAGS_COMMON := \
        -fmessage-length=0 \
        -fno-common \
        -pipe \
-       -fstack-protector-strong \
 
 gb_CXXFLAGS_DISABLE_WARNINGS = -w
 
@@ -136,8 +134,6 @@ endif
 gb_VISIBILITY_FLAGS_CXX := -fvisibility-inlines-hidden
 gb_CXXFLAGS_COMMON += $(gb_VISIBILITY_FLAGS_CXX)
 
-gb_LinkTarget_LDFLAGS += -fstack-protector-strong
-
 ifneq ($(ENABLE_PCH),)
 ifeq ($(COM_IS_CLANG),TRUE)
 # Clang by default includes in the PCH timestamps of the files it was