OSDN Git Service

make sure UCLIBC_LDSO can be found via path
authorMike Frysinger <vapier@gentoo.org>
Wed, 20 Dec 2006 16:17:33 +0000 (16:17 -0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 20 Dec 2006 16:17:33 +0000 (16:17 -0000)
test/Rules.mak

index ee080aa..6a7612b 100644 (file)
@@ -14,7 +14,13 @@ TESTDIR=$(top_builddir)test/
 
 include $(top_builddir)/Rules.mak
 
-UCLIBC_LDSO ?= $(firstword $(wildcard $(top_builddir)lib/ld*))
+ifdef UCLIBC_LDSO
+ifeq (,$(findstring /,$(UCLIBC_LDSO)))
+UCLIBC_LDSO := $(top_builddir)lib/$(UCLIBC_LDSO)
+endif
+else
+UCLIBC_LDSO := $(firstword $(wildcard $(top_builddir)lib/ld*))
+endif
 
 #--------------------------------------------------------
 # Ensure consistent sort order, 'gcc -print-search-dirs' behavior, etc.