From 52adcdb89a9eb527df38c569539d95c1c7aeda6e Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Thu, 12 Mar 2020 18:11:47 +0100 Subject: build: Adapt to backwards incompatible change in GNU Make 4.3 GNU Make 4.3 has a backwards incompatible change affecting the use of number signs or hashes (ie., #) inside function invocations. See: https://lists.gnu.org/archive/html/info-gnu/2020-01/msg00004.html In this case, it would expand the '\#' in the '\n\#include \"$(h)\"' argument to the foreach call to '\#', not '#'. This would lead to spurious backslashes in front of the '#include' directives in the generated fs-enumtypes.c file. Spotted by Ernestas Kulik. https://gitlab.freedesktop.org/gstreamer/common/-/merge_requests/4 --- gst-glib-gen.mak | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-glib-gen.mak b/gst-glib-gen.mak index 76b2233..bcb4240 100644 --- a/gst-glib-gen.mak +++ b/gst-glib-gen.mak @@ -8,7 +8,8 @@ #glib_gen_decl_banner=GST_EXPORT #glib_gen_decl_include=\#include -enum_headers=$(foreach h,$(glib_enum_headers),\n\#include \"$(h)\") +hash:=\# +enum_headers=$(foreach h,$(glib_enum_headers),\n$(hash)include \"$(h)\") # these are all the rules generating the relevant files $(glib_gen_basename)-marshal.h: $(glib_gen_basename)-marshal.list -- cgit v1.2.3