1This patch changes all of the hard-coded invocations of "ar" to $(AR), to 2support a cross-compilation toolchain. 3 4The content of this patch was copied from the OpenWrt project: 5https://dev.openwrt.org/browser/packages/net/xinetd/patches/001-ar.patch 6 7Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com> 8 9--- a/libs/src/misc/Makefile.in 10+++ b/libs/src/misc/Makefile.in 11@@ -62,7 +62,7 @@ 12 13 14 $(LIBNAME): $(OBJECTS) 15- ar r $@ $? 16+ $(AR) r $@ $? 17 $(RANLIB) $@ 18 19 install: $(LIBNAME) 20--- a/libs/src/portable/Makefile.in 21+++ b/libs/src/portable/Makefile.in 22@@ -57,7 +57,7 @@ 23 24 25 $(LIBNAME): $(OBJECTS) 26- ar r $@ $? 27+ $(AR) r $@ $? 28 $(RANLIB) $@ 29 30 install: $(LIBNAME) 31--- a/libs/src/pset/Makefile.in 32+++ b/libs/src/pset/Makefile.in 33@@ -53,7 +53,7 @@ 34 mv $(LIBNAME) $(LIBDIR)/optimized 35 36 $(LIBNAME): $(OBJECTS) 37- ar r $@ $? 38+ $(AR) r $@ $? 39 $(RANLIB) $@ 40 41 install: $(LIBNAME) 42--- a/libs/src/sio/Makefile.in 43+++ b/libs/src/sio/Makefile.in 44@@ -52,7 +52,7 @@ 45 $(INSTALL) $(FMODE) $(LIBNAME) $(LIBDIR)/optimized 46 47 $(LIBNAME): $(OBJECTS) 48- ar r $@ $? 49+ $(AR) r $@ $? 50 $(RANLIB) $@ 51 52 install: $(LIBNAME) 53--- a/libs/src/str/Makefile.in 54+++ b/libs/src/str/Makefile.in 55@@ -63,7 +63,7 @@ 56 $(INSTALL) $(FMODE) $(LIBNAME) $(LIBDIR)-O 57 58 $(LIBNAME): $(OBJECTS) 59- ar r $@ $? 60+ $(AR) r $@ $? 61 $(RANLIB) $@ 62 63 LINT_IGNORE=possible pointer alignment|RCSid unused 64--- a/libs/src/xlog/Makefile.in 65+++ b/libs/src/xlog/Makefile.in 66@@ -58,7 +58,7 @@ 67 $(INSTALL) $(FMODE) $(LIBNAME) $(LIBDIR)/optimized 68 69 $(LIBNAME): $(OBJECTS) 70- ar r $@ $? 71+ $(AR) r $@ $? 72 $(RANLIB) $@ 73 74 install: $(LIBNAME) 75