yann@1: Fixes yann@1: elf/librtld.os: In function `process_envvars': : undefined reference to `__access' yann@1: ... yann@1: when building glibc-2.3.3 on cygwin yann@1: yann@1: Idea from yann@1: http://sources.redhat.com/ml/bug-glibc/2002-01/msg00071/glibc-2.2-cygin-shared.patch yann@1: Basically, make glibc use .oST as suffix for 'object static' yann@1: instead of .oS, since cygwin has trouble distinguishing .os from .oS yann@1: (Original patch had .on, but .oST is more mnemonic for 'object static') yann@1: yann@1: glibc-linuxthreads-2.3.3 also requires a patch, see yann@1: ../glibc-linuxthreads-2.3.3/glibc-linuxthreads-2.3.3-cygwin.patch yann@1: yann@1: [ rediffed against glibc-2.3.3 ] yann@1: yann@1: yann@1: diff -aur glibc-linuxthreads-2.3.3/linuxthreads/Makefile glibc-linuxthreads-2.3.3-cygwin/linuxthreads/Makefile yann@1: --- glibc-linuxthreads-2.3.3/linuxthreads/Makefile 2004-08-27 20:38:40.000000000 -0700 yann@1: +++ glibc-linuxthreads-2.3.3-cygwin/linuxthreads/Makefile 2003-10-02 11:48:48.000000000 -0700 yann@1: @@ -156,7 +156,7 @@ yann@1: install: $(inst_libdir)/libpthread.so yann@1: $(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \ yann@1: $(objpfx)libpthread.so$(libpthread.so-version) \ yann@1: - $(inst_libdir)/$(patsubst %,$(libtype.oS),\ yann@1: + $(inst_libdir)/$(patsubst %,$(libtype.oST),\ yann@1: $(libprefix)pthread) \ yann@1: $(+force) yann@1: (echo '/* GNU ld script';\ yann@1: @@ -164,7 +164,7 @@ yann@1: echo ' the static library, so try that secondarily. */';\ yann@1: cat $<; \ yann@1: echo 'GROUP ( $(slibdir)/libpthread.so$(libpthread.so-version)' \ yann@1: - '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)pthread)'\ yann@1: + '$(libdir)/$(patsubst %,$(libtype.oST),$(libprefix)pthread)'\ yann@1: ')' \ yann@1: ) > $@.new yann@1: mv -f $@.new $@