This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]