This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Fix libc-abis handling for add-ons
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: libc-alpha at sourceware dot org
- Date: Tue, 6 Apr 2010 19:46:25 +0000 (UTC)
- Subject: Fix libc-abis handling for add-ons
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