Fix "ar: `u' modifier ignored since `D' is the default (see `U')" warnings.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 10 Aug 2021 10:07:59 +0000 (19:07 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 10 Aug 2021 10:15:06 +0000 (19:15 +0900)
The warning can be eliminated by changing arguments of ar command from
"cru" to "cr".  There were two places of the warnings: src/libs/pcp
and src/watchdog.  For the former, we need to fix libtool, which is
generated by configure. So fix configure.ac.  For the latter, just fix
src/watchdog/Makefile.am.

configure.ac
src/watchdog/Makefile.am

index bddcfafdcdb38f0e5b429855098f4772deffe013..aa4dd4b40868ab4256c23448beb133a29b016265 100644 (file)
@@ -10,6 +10,8 @@ dnl Disallow to rebuild configure.
 AM_MAINTAINER_MODE(disable)
 
 # AC_PROG_RANLIB
+AR_FLAGS="cr"
+AC_SUBST(AR_FLAGS)
 AC_PROG_LIBTOOL
 
 AM_PROG_LEX
index f35176ff7fc2ca4c518df49906b283e67d45c17b..529c17c737f2edfc748702bfcf2d62c1c66a21e2 100644 (file)
@@ -1,5 +1,6 @@
 top_builddir = ../..
 AM_CPPFLAGS = -D_GNU_SOURCE -I @PGSQL_INCLUDE_DIR@
+ARFLAGS = cr
 WATCHDOG_DEBUG=0
 noinst_LIBRARIES = lib-watchdog.a