Commit 52adcdb8 authored by Debarshi Ray's avatar Debarshi Ray

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.

!4
parent 88e512ca
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
#glib_gen_decl_banner=GST_EXPORT #glib_gen_decl_banner=GST_EXPORT
#glib_gen_decl_include=\#include <gst/foo/foo-prelude.h> #glib_gen_decl_include=\#include <gst/foo/foo-prelude.h>
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 # these are all the rules generating the relevant files
$(glib_gen_basename)-marshal.h: $(glib_gen_basename)-marshal.list $(glib_gen_basename)-marshal.h: $(glib_gen_basename)-marshal.list
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment