From: Roger Pau Monne Date: Wed, 30 Dec 2020 17:34:46 +0000 (+0100) Subject: xen: remove the usage of the P ar option X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~1224 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1516ecd6f55fe3608f374f4f2548491472d1c9a1;p=xen.git xen: remove the usage of the P ar option It's not part of the POSIX standard [0] and as such non GNU ar implementations don't usually have it. It's not relevant for the use case here anyway, as the archive file is recreated every time due to the rm invocation before the ar call. No file name matching should happen so matching using the full path name or a relative one should yield the same result. This fixes the build on FreeBSD. While there also drop the s option, as ar will already generate a symbol table by default when creating the archive. [0] https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ar.html Signed-off-by: Roger Pau Monné Acked-by: Andrew Cooper --- diff --git a/xen/Rules.mk b/xen/Rules.mk index aba6ca2a90..ceb3d204b8 100644 --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -71,7 +71,7 @@ cmd_ld = $(LD) $(XEN_LDFLAGS) -r -o $@ $(filter-out %.a,$(real-prereqs)) \ # --------------------------------------------------------------------------- quiet_cmd_ar = AR $@ -cmd_ar = rm -f $@; $(AR) cPrs $@ $(real-prereqs) +cmd_ar = rm -f $@; $(AR) cr $@ $(real-prereqs) # Objcopy # ---------------------------------------------------------------------------