[edk2-devel] [PATCH edk2-stable202208 1/1] BaseTools: Fix DevicePath GNUmakefile for macOS
Michael D Kinney
michael.d.kinney at intel.com
Fri Aug 26 01:38:42 UTC 2022
Reviewed-by: Michael D Kinney <michael.d.kinney at intel.com>
I approve for edk2-stable202208
Mike
> -----Original Message-----
> From: devel at edk2.groups.io <devel at edk2.groups.io> On Behalf Of Rebecca Cran
> Sent: Thursday, August 25, 2022 6:32 PM
> To: devel at edk2.groups.io; Andrew Fish <afish at apple.com>; Leif Lindholm <quic_llindhol at quicinc.com>; Kinney, Michael D
> <michael.d.kinney at intel.com>; Feng, Bob C <bob.c.feng at intel.com>; Gao, Liming <gaoliming at byosoft.com.cn>; Chen, Christine
> <yuwei.chen at intel.com>
> Cc: Rebecca Cran <rebecca at bsdio.com>
> Subject: [edk2-devel] [PATCH edk2-stable202208 1/1] BaseTools: Fix DevicePath GNUmakefile for macOS
>
> On macOS, /usr/bin/gcc is clang, and so doesn't have
> the -Wno-error=stringop-overflow flag that was added
> for gcc 12.
> Update the GNUmakefile for DevicePath to skip setting
> that on macOS.
>
> Signed-off-by: Rebecca Cran <rebecca at bsdio.com>
> ---
> BaseTools/Source/C/DevicePath/GNUmakefile | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/BaseTools/Source/C/DevicePath/GNUmakefile b/BaseTools/Source/C/DevicePath/GNUmakefile
> index c217674345b1..17f213879e82 100644
> --- a/BaseTools/Source/C/DevicePath/GNUmakefile
> +++ b/BaseTools/Source/C/DevicePath/GNUmakefile
> @@ -16,10 +16,12 @@ include $(MAKEROOT)/Makefiles/app.makefile
> GCCVERSION = $(shell gcc -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)
> --
> 2.30.1 (Apple Git-130)
>
>
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#92829): https://edk2.groups.io/g/devel/message/92829
Mute This Topic: https://groups.io/mt/93261668/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list