OSDN Git Service

test: add missing top_srcdir
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 23 Feb 2013 09:22:56 +0000 (10:22 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 14 Mar 2013 21:49:25 +0000 (22:49 +0100)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
32 files changed:
Makefile.in
Rules.mak
test/API/Makefile
test/Makefile
test/args/Makefile
test/assert/Makefile
test/build/Makefile
test/crypt/Makefile
test/ctype/Makefile
test/dlopen/Makefile
test/inet/Makefile
test/librt/Makefile
test/locale-mbwc/Makefile
test/locale/Makefile
test/malloc/Makefile
test/math/Makefile
test/misc/Makefile
test/mmap/Makefile
test/pthread/Makefile
test/pwd_grp/Makefile
test/regex/Makefile
test/rpc/Makefile
test/setjmp/Makefile
test/signal/Makefile
test/silly/Makefile
test/stat/Makefile
test/stdio/Makefile
test/stdlib/Makefile
test/string/Makefile
test/termios/Makefile
test/time/Makefile
test/unistd/Makefile

index 80c7099..5d0f87d 100644 (file)
@@ -196,7 +196,8 @@ $(top_builddir)include/bits/sysnum.h: $(top_srcdir)extra/scripts/gen_bits_syscal
 
 .PHONY: $(LOCAL_INSTALL_PATH)
 $(LOCAL_INSTALL_PATH):
-       $(Q)$(MAKE) PREFIX=$(shell pwd)/$(LOCAL_INSTALL_PATH) RUNTIME_PREFIX=/ \
+       $(Q)$(MAKE) PREFIX=$(LOCAL_INSTALL_PATH) \
+       RUNTIME_PREFIX=/ \
        DEVEL_PREFIX=/usr/ \
        HOSTCC="$(HOSTCC)" \
        install
@@ -512,7 +513,7 @@ dist release:
        du -b ../uClibc-$(VERSION).tar.{bz2,xz}
 
 test check: test_compile
-       $(Q)$(MAKE) -C test
+       $(Q)$(MAKE) -C test $(if $(O),top_builddir=$(O)/)
 
 test_compile: $(LOCAL_INSTALL_PATH)
-       $(Q)$(MAKE) -C test compile
+       $(Q)$(MAKE) -C test compile $(if $(O),top_builddir=$(O)/)
index 751c2fe..a602b4f 100644 (file)
--- a/Rules.mak
+++ b/Rules.mak
@@ -837,6 +837,6 @@ SHARED_START_FILES:=$(top_builddir)lib/crti.o $(LIBGCC_DIR)crtbeginS.o
 SHARED_END_FILES:=$(LIBGCC_DIR)crtendS.o $(top_builddir)lib/crtn.o
 endif
 
-LOCAL_INSTALL_PATH := install_dir
+LOCAL_INSTALL_PATH := $(if $(O),$(O)/)install_dir
 
 PTHREAD_GENERATE_MANGLE ?= -n "s/^.*@@@name@@@\([^@]*\)@@@value@@@[^0-9Xxa-fA-F-]*\([0-9Xxa-fA-F-][0-9Xxa-fA-F-]*\).*@@@end@@@.*\$$/\#define \1 \2/p"
index 458d6c5..2384e2a 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index e34c295..0c7b915 100644 (file)
@@ -5,6 +5,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
 
+top_srcdir=../
 top_builddir=../
 include Rules.mak
 
index 67ee452..0ae3f01 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index 6913254..841a4da 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index 99a64d5..ce74a8a 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index 44bbde0..25b0f3c 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index fd72584..99dbdbc 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index ef15d86..d5be53c 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index 9605dca..b294ea6 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index 354c681..1021afe 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index 771c3d1..263f325 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index 771c3d1..263f325 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index d76f07b..97c424b 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index 135aedb..6194efa 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index 52f6c67..09fa233 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index 64b652d..89e7195 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index d6f00d6..97ebee8 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index 21070f4..fa2aacb 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index 6391222..eea0c49 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index 47accc6..e098072 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index a26e2d5..6feab59 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index e829365..c2afb5f 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index 4db1850..54f4bd0 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index ecde416..03fdb96 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index a5d662a..95b930b 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index f8a4038..567e0e3 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index 62c8269..8948a50 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index 926e052..098cca6 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index 103acb8..fed4569 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
index 0dbd52e..796d7cc 100644 (file)
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak