$NetBSD: patch-xen_Makefile,v 1.1 2023/11/21 11:37:03 bouyer Exp $ --- xen/Makefile.orig 2023-10-12 11:25:40.066708313 +0200 +++ xen/Makefile 2023-10-12 11:25:43.774709255 +0200 @@ -1,3 +1,7 @@ +# reset CFLAGS, it accumulates settings from upper level (maybe because it's +# in $ENV in pkgsrc +CFLAGS= + # $(lastword,) for GNU Make older than 3.81 lastword = $(word $(words $(1)),$(1)) this-makefile := $(call lastword,$(MAKEFILE_LIST))