Browse Source

make sure UCLIBC_LDSO can be found via path

Mike Frysinger 18 years ago
parent
commit
e2f06f4eb0
1 changed files with 7 additions and 1 deletions
  1. 7 1
      test/Rules.mak

+ 7 - 1
test/Rules.mak

@@ -14,7 +14,13 @@ TESTDIR=$(top_builddir)test/
 
 
 include $(top_builddir)/Rules.mak
 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.
 # Ensure consistent sort order, 'gcc -print-search-dirs' behavior, etc.