1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/ports-2.10.1/250-fix-pr631.patch Fri Apr 30 22:26:52 2010 +0200
1.3 @@ -0,0 +1,45 @@
1.4 +From dank@kegel.com
1.5 +Wed Jun 15 09:12:43 PDT 2005
1.6 +
1.7 +Fixes
1.8 +
1.9 +build-glibc/libc.a(nsswitch.o)(.data+0x64): undefined reference to `_nss_files_getaliasent_r'
1.10 +build-glibc/libc.a(nsswitch.o)(.data+0x6c): undefined reference to `_nss_files_endaliasent'
1.11 +... 53 lines deleted ...
1.12 +build-glibc/libc.a(nsswitch.o)(.data+0x21c): undefined reference to `_nss_files_getspnam_r'
1.13 +collect2: ld returned 1 exit status
1.14 +make[2]: *** [/build/gcc-3.4.3-glibc-2.3.5-hdrs-2.6.11.2/i686-unknown-linux-gnu/build-glibc/elf/ldconfig] Error 1
1.15 +
1.16 +when building glibc with --enable-static-nss.
1.17 +
1.18 +See http://sources.redhat.com/bugzilla/show_bug.cgi?id=631
1.19 +
1.20 +diff -durN glibc-2.10.1.orig/Makeconfig glibc-2.10.1/Makeconfig
1.21 +--- glibc-2.10.1.orig/Makeconfig 2009-11-13 00:49:41.000000000 +0100
1.22 ++++ glibc-2.10.1/Makeconfig 2009-11-13 00:50:13.000000000 +0100
1.23 +@@ -509,7 +509,7 @@
1.24 +
1.25 + # The static libraries.
1.26 + ifeq (yes,$(build-static))
1.27 +-link-libc-static = $(common-objpfx)libc.a $(static-gnulib) $(common-objpfx)libc.a
1.28 ++link-libc-static = $(common-objpfx)libc.a $(static-gnulib) $(otherlibs) $(common-objpfx)libc.a
1.29 + else
1.30 + ifeq (yes,$(build-shared))
1.31 + # We can try to link the programs with lib*_pic.a...
1.32 +diff -durN glibc-2.10.1.orig/elf/Makefile glibc-2.10.1/elf/Makefile
1.33 +--- glibc-2.10.1.orig/elf/Makefile 2009-01-31 01:20:55.000000000 +0100
1.34 ++++ glibc-2.10.1/elf/Makefile 2009-11-13 00:50:13.000000000 +0100
1.35 +@@ -121,6 +121,13 @@
1.36 + install-bin-script = ldd
1.37 + endif
1.38 +
1.39 ++ifeq (yes,$(build-static-nss))
1.40 ++nssobjdir := $(patsubst ../$(subdir),.,$(common-objpfx)nss)
1.41 ++resolvobjdir := $(patsubst ../$(subdir),.,$(common-objpfx)resolv)
1.42 ++otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
1.43 ++ $(resolvobjdir)/libresolv.a
1.44 ++endif
1.45 ++
1.46 + others = sprof sln
1.47 + install-bin = sprof
1.48 + others-static = sln