minigbm: update to _FORTIFY_SOURCE=3

Since this project explicitly specifies its FORTIFY level, update it to
the level CrOS wants to move to. This isn't _removed_, since it's copied
from a template file, and consistency with that seems useful.

The template file this was copied from was updated in
crrev.com/c/4735413.

BUG=b:288411201
TEST=CQ+1

Change-Id: I0b3cb733eaffd08611aad7ce58e463a7247da737
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/4707718
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Tested-by: George Burgess <gbiv@chromium.org>
Commit-Queue: George Burgess <gbiv@chromium.org>
This commit is contained in:
George Burgess IV 2023-07-21 10:43:52 -06:00 committed by Chromeos LUCI
parent c445362dbf
commit 30c22dada9

View file

@ -314,7 +314,7 @@ COMMON_CFLAGS-clang := -fvisibility=hidden -ggdb
COMMON_CFLAGS := -Wall -Werror -fno-strict-aliasing $(SSP_CFLAGS) -O1 -Wformat=2
CXXFLAGS += $(COMMON_CFLAGS) $(COMMON_CFLAGS-$(CXXDRIVER))
CFLAGS += $(COMMON_CFLAGS) $(COMMON_CFLAGS-$(CDRIVER))
CPPFLAGS += -D_FORTIFY_SOURCE=2
CPPFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3
# Disable exceptions based on the CXXEXCEPTIONS setting.
ifeq ($(CXXEXCEPTIONS),0)