From: Roland McGrath Date: Sun, 19 Mar 2000 21:47:12 +0000 (+0000) Subject: * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop X-Git-Tag: cvs/glibc_2-1-91~864 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b3c3a3525b6571c546a8a9aad8f3a53a055dc2a;p=platform%2Fupstream%2Fglibc.git * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop for $(map-firstversions), which better handles it being empty. --- diff --git a/ChangeLog b/ChangeLog index 9c84cb2..aee8adf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-03-19 Roland McGrath + * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop + for $(map-firstversions), which better handles it being empty. + * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest supported version for libc 0.2.90.libio to GLIBC_2.2. diff --git a/Makerules b/Makerules index fefbea0..202c922 100644 --- a/Makerules +++ b/Makerules @@ -294,9 +294,7 @@ $(common-objpfx)Versions.all: $(..)scripts/firstversions.awk \ $(..)Versions.def \ $(wildcard $(add-ons:%=$(..)%/Versions.def)) \ $(common-objpfx)soversions.mk - { for map in $(map-firstversions); do \ - echo $$map; \ - done | sed 's/:/ : /'; \ + { $(foreach map,$(map-firstversions),echo '$(subst :, : ,$(map))';) \ cat $(filter-out $< $(common-objpfx)soversions.mk,$^); \ } | LC_ALL=C $(AWK) -f $< > $@T mv -f $@T $@