Skip to contentSkip to conversation

build: fix inclusion of Makefile.extra

PATCH New Jeremy Sowden 1 participant 1 message Dec 3, 2024 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: fix inclusion of Makefile.extra

Commit 08a16d90ceae ("build: use $(top_srcdir) when including Makefile.extra") replaces hard-coded relative paths used to include Makefile.extra with variables. However, despite the commit message, the variables are enclosed with braces, not parentheses, and it transpires that automake does not support the use of braces in this context. As a result, Makefile.extra is not included, and the libxt_ACCOUNT.so and libxt_pknock.so extensions are not built.

Use parentheses instead.

Fixes 08a16d90ceae ("build: use `$(top_srcdir)` when including Makefile.extra")
---
 extensions/ACCOUNT/Makefile.am | 2 +-
 extensions/Makefile.am         | 2 +-
 extensions/pknock/Makefile.am  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
extensions/ACCOUNT/Makefile.am +1 -1
index 2514386f00b8..473a739f981a 100644
@@ -3,7 +3,7 @@
 AM_CPPFLAGS = ${regular_CPPFLAGS} -I${abs_top_srcdir}/extensions
 AM_CFLAGS   = ${regular_CFLAGS} ${libxtables_CFLAGS}
 
-include ${top_srcdir}/Makefile.extra
+include $(top_srcdir)/Makefile.extra
 
 sbin_PROGRAMS = iptaccount
 iptaccount_LDADD = libxt_ACCOUNT_cl.la
extensions/Makefile.am +1 -1
index 8f0aeb5666da..b99712dfcd38 100644
@@ -26,4 +26,4 @@ install-exec-local: modules_install
 
 clean-local: clean_modules
 
-include ${top_srcdir}/Makefile.extra
+include $(top_srcdir)/Makefile.extra
extensions/pknock/Makefile.am +1 -1
index 1ca5f91025b7..5fcae4794230 100644
@@ -3,7 +3,7 @@
 AM_CPPFLAGS = ${regular_CPPFLAGS} -I${abs_top_srcdir}/extensions
 AM_CFLAGS   = ${regular_CFLAGS} ${libxtables_CFLAGS}
 
-include ${top_srcdir}/Makefile.extra
+include $(top_srcdir)/Makefile.extra
 
 sbin_PROGRAMS = pknlusr
 dist_man_MANS = pknlusr.8
Signature · 1 line
2.45.2