From d85480f441f7df7755e7a812f4b9c98774a53d63 Mon Sep 17 00:00:00 2001 From: Tee-Kiah Chia Date: Thu, 20 Jan 2022 13:22:08 +0000 Subject: [PATCH] aal: recognize but ignore an `s` option for GNU ar compatibility first/build.lua invokes the archiver $(AR) with the flags `cqs`. This patch allows this to work even if $(AR) is aal. --- util/arch/archiver.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/util/arch/archiver.c b/util/arch/archiver.c index 1a0e85afa..98fc79375 100644 --- a/util/arch/archiver.c +++ b/util/arch/archiver.c @@ -24,6 +24,9 @@ #ifdef DISTRIBUTION * D: make distribution: use distr_time, uid=2, gid=2, mode=0644 #endif + #ifdef AAL + * s: ignored; for compatibility with GNU ar (says to build index table) + #endif */ #include @@ -324,6 +327,10 @@ int main(int argc, char *argv[]) case 'D' : distr_fl = TRUE; break; +#endif +#ifdef AAL + case 's': + break; #endif default: usage();