Skip to contentSkip to conversation

automake: Avoid usage of user variables CPPFLAGS and LDFLAGS

PATCH New Jan Kiszka 1 participant 1 message Mar 22, 2023

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 automake: Avoid usage of user variables CPPFLAGS and LDFLAGS

From: Jan Kiszka <[email protected]>

In automake files, those should be prefixed with AM_ to avoid conflicts with the user-controlled variables. See also

https://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html

---
 lib/copperplate/regd/Makefile.am | 4 ++--
 utils/analogy/Makefile.am        | 2 +-
 utils/net/Makefile.am            | 2 +-
 utils/ps/Makefile.am             | 2 +-
 utils/slackspot/Makefile.am      | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)
lib/copperplate/regd/Makefile.am +2 -2
index 3b14e98636..5e4301bf81 100644
@@ -1,12 +1,12 @@
 sbin_PROGRAMS = sysregd
 
-CPPFLAGS = 			\
+AM_CPPFLAGS = 			\
 	@XENO_USER_CFLAGS@	\
 	@XENO_FUSE_CFLAGS@	\
 	-I$(top_srcdir)/lib	\
 	-I$(top_srcdir)/include
 
-LDFLAGS = $(XENO_POSIX_WRAPPERS)
+AM_LDFLAGS = $(XENO_POSIX_WRAPPERS)
 
 LDADD = 			\
 	../libcopperplate@[email protected]	\
utils/analogy/Makefile.am +1 -1
index f8a304b601..a1506de5d8 100644
@@ -9,7 +9,7 @@ bin_PROGRAMS = \
 	insn_bits \
 	wf_generate
 
-CPPFLAGS = 						\
+AM_CPPFLAGS = 						\
 	@XENO_USER_CFLAGS@ 				\
 	-ggdb						\
 	-I$(top_srcdir)/include                         \
utils/net/Makefile.am +1 -1
index 3b90f8adfd..86d351ede4 100644
@@ -2,7 +2,7 @@ nodist_sysconf_DATA = rtnet.conf
 
 dist_sysconf_DATA = tdma.conf
 
-CPPFLAGS = -I$(top_srcdir)/kernel/drivers/net/stack/include
+AM_CPPFLAGS = -I$(top_srcdir)/kernel/drivers/net/stack/include
 
 sbin_SCRIPTS = rtnet
 
utils/ps/Makefile.am +1 -1
index b8930fb56d..1120e6da3f 100644
@@ -1,6 +1,6 @@
 sbin_PROGRAMS = rtps
 
-CPPFLAGS = 						\
+AM_CPPFLAGS = 						\
 	@XENO_USER_CFLAGS@				\
 	-I$(top_srcdir)/include
 
utils/slackspot/Makefile.am +1 -1
index 179243a95e..87f99e49ea 100644
@@ -1,6 +1,6 @@
 sbin_PROGRAMS = slackspot
 
-CPPFLAGS = 				\
+AM_CPPFLAGS = 				\
 	@XENO_USER_CFLAGS_STDLIB@	\
 	-I$(top_srcdir)/include
 
Signature · 1 line
2.35.3