summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-08-29 08:05:28 (GMT)
committerThomas Haller <thaller@redhat.com>2023-08-29 08:47:53 (GMT)
commit5761b6af8e907d10504df1428e08e0f596d8e7a2 (patch)
tree2e7f0e57afcde2c8a4aeefef14b26cb4002fdc70
parent0f60ab3917dae704b6bc889b45a25e932f4cbc3a (diff)
downloadlibnl-5761b6af8e907d10504df1428e08e0f596d8e7a2.zip
libnl-5761b6af8e907d10504df1428e08e0f596d8e7a2.tar.gz
libnl-5761b6af8e907d10504df1428e08e0f596d8e7a2.tar.bz2
build: add "-Wno-portability" to AC_INIT_AUTOMAKE()
Silence warnings with "-Wno-portability". Makefile.am:1130: warning: '%'-style pattern rules are a GNU make extension Makefile.am:1131: warning: dir $@: non-POSIX variable name Makefile.am:1131: (probably a GNU make extension) Makefile.am:1134: warning: '%'-style pattern rules are a GNU make extension Makefile.am:1137: warning: patsubst %,%.build-headers-test.o,$(public_headers: non-POSIX variable name Makefile.am:1137: (probably a GNU make extension) We care about portability, but only to the extend that we test configurations via CI. As all our current CI passes, the warning is bogus and not something we will fix. If you come up in a situation where this is a problem, then we have a real scenario at hand and something to fix. Unless that happens, we target a real implementation and not the make specification.
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index ead499a..247ff7a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,7 +40,7 @@ AC_INIT(libnl, [libnl_version], [], [], [http://www.infradead.org/~tgr/libnl/])
AC_CONFIG_HEADERS([include/config.h])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
-AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
+AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign subdir-objects])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)], [])
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])