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