patches/glibc/2.2.5/glibc-2.2.5-crosstest.patch
changeset 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/2.2.5/glibc-2.2.5-crosstest.patch	Sat Feb 24 11:00:05 2007 +0000
     1.3 @@ -0,0 +1,27 @@
     1.4 +Fixes errors like
     1.5 +  /build-glibc/dlfcn/glrefmain: cannot load `glreflib1.so'
     1.6 +in glibc regression test
     1.7 +
     1.8 +--- glibc-2.2.5/dlfcn/Makefile.old	Thu Jul 24 16:30:20 2003
     1.9 ++++ glibc-2.2.5/dlfcn/Makefile	Thu Jul 24 17:25:01 2003
    1.10 +@@ -60,6 +60,8 @@
    1.11 + test-modules = $(addprefix $(objpfx),$(addsuffix .so,$(modules-names)))
    1.12 + $(test-modules): $(objpfx)%.so: $(objpfx)%.os
    1.13 + 	$(build-module)
    1.14 ++# without following rule, test-modules don't get built when cross-compiling
    1.15 ++tests: $(test-modules)
    1.16 + 
    1.17 + $(objpfx)glrefmain: $(libdl)
    1.18 + $(objpfx)glrefmain.out: $(objpfx)glrefmain \
    1.19 +--- glibc-2.2.5/elf/Makefile.old	Thu Jul 24 18:17:12 2003
    1.20 ++++ glibc-2.2.5/elf/Makefile	Thu Jul 24 18:18:58 2003
    1.21 +@@ -263,6 +263,9 @@
    1.22 + test-modules = $(addprefix $(objpfx),$(addsuffix .so,$(strip $(modules-names))))
    1.23 + generated += $(addsuffix .so,$(strip $(modules-names)))
    1.24 + 
    1.25 ++# without following rule, test-modules don't get built when cross-compiling
    1.26 ++tests: $(test-modules)
    1.27 ++
    1.28 + ifeq (yes,$(build-shared))
    1.29 + ifeq ($(cross-compiling),no)
    1.30 + tests: $(objpfx)tst-pathopt.out