X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FSource%2FC%2FDevicePath%2FGNUmakefile;h=13b54ead65ac2d8a3ea8a28caed2109fe048ae21;hb=3a872dac7b79e83b1897d90237ff3fa25c7d69c8;hp=b05d2bddfa68c977dadcb50545095f5da26c94db;hpb=22130dcd98b4d4b76ac8d922adb4a2dbc86fa52c;p=mirror_edk2.git diff --git a/BaseTools/Source/C/DevicePath/GNUmakefile b/BaseTools/Source/C/DevicePath/GNUmakefile index b05d2bddfa..13b54ead65 100644 --- a/BaseTools/Source/C/DevicePath/GNUmakefile +++ b/BaseTools/Source/C/DevicePath/GNUmakefile @@ -13,8 +13,15 @@ OBJECTS = DevicePath.o UefiDevicePathLib.o DevicePathFromText.o DevicePathUtili include $(MAKEROOT)/Makefiles/app.makefile +GCCVERSION = $(shell $(BUILD_CC) -dumpversion | awk -F'.' '{print $$1}') +ifneq ("$(GCCVERSION)", "5") +ifneq ($(CXX), llvm) +ifneq ($(DARWIN),Darwin) # gcc 12 trips over device path handling BUILD_CFLAGS += -Wno-error=stringop-overflow +endif +endif +endif LIBS = -lCommon ifeq ($(CYGWIN), CYGWIN)