0001-ar.patch 1.6 KB

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