  extra-objs: $(addprefix $(objpfx),$(extra-objs))
  
  # Canned sequence for building an extra library archive.
-@@ -1615,7 +1615,7 @@
+@@ -1499,7 +1499,7 @@
  	$(rmobjs)
  define rmobjs
  $(foreach o,$(object-suffixes-for-libc),

* use host version of ar, which is given by environment variable
* build system uses stamp.os and stamp.oS files, which only differ in case;
  this fails on macOS, so replace .oS with .o_S
* libintl.h does not exist (and is not needed) on macOS

--- glibc-2.27/Makefile.in	2018-02-01 17:17:18.000000000 +0100
+++ glibc-2.27/Makefile.in	2019-02-15 17:38:27.022965553 +0100
@@ -6,9 +6,11 @@
 .PHONY: all install bench
 

 	$(make-target-directory)
 	rm -f $@; > $@
 else
@@ -859,7 +859,7 @@
 # The parent will then actually add them all to the archive in the
 # archive rule, below.
 define o-iterator-doit
