automake: Avoid usage of user variables CPPFLAGS and LDFLAGS
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
Reported-by Mauro Salvini <[email protected]>
Signed-off-by Jan Kiszka <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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
@@ -1,6 +1,6 @@ sbin_PROGRAMS = rtps -CPPFLAGS = \ +AM_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/include
utils/slackspot/Makefile.am +1 -1
@@ -1,6 +1,6 @@ sbin_PROGRAMS = slackspot -CPPFLAGS = \ +AM_CPPFLAGS = \ @XENO_USER_CFLAGS_STDLIB@ \ -I$(top_srcdir)/include
Signature · 1 line
2.35.3