Fix libc-abis handling for add-ons
Joseph S. Myers
joseph@codesourcery.com
Tue Apr 6 20:07:00 GMT 2010
The libc-abis code tries to find a libc-abis file in an add-on before
using the libc version but fails as it's using $(foreach D,$(add-ons),
$(..)libc-abis) and $(..)libc-abis nowhere uses $D. This patch fixes
it to use $(..)$D/libc-abis. (Needed for ports to be able to define
its own versions for ports targets.)
2010-04-06 Joseph Myers <joseph@codesourcery.com>
* Makerules (libc-abis): Fix search for libc-abis in add-ons.
diff --git a/Makerules b/Makerules
index d5ff383..b0dcff2 100644
--- a/Makerules
+++ b/Makerules
@@ -111,7 +111,8 @@ endif # $(versioning) = yes
ifndef avoid-generated
before-compile := $(common-objpfx)libc-abis.h $(before-compile)
-libc-abis := $(firstword $(wildcard $(foreach D,$(add-ons), $(..)libc-abis)) \
+libc-abis := $(firstword $(wildcard $(foreach D,$(add-ons), \
+ $(..)$D/libc-abis)) \
libc-abis)
$(common-objpfx)libc-abis.h: $(..)scripts/gen-libc-abis $(libc-abis)
$(SHELL) $(..)scripts/gen-libc-abis \
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list