3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
6 --- glibc-2.2.5/Makeconfig~glibc-2.2.5-cygwin.patch 2004-09-03 19:00:33.000000000 -0500
7 +++ glibc-2.2.5/Makeconfig 2004-09-03 19:00:38.000000000 -0500
9 # run the linked programs.
10 link-libc = -Wl,-rpath-link=$(rpath-link) \
11 $(common-objpfx)libc.so$(libc.so-version) \
12 - $(common-objpfx)$(patsubst %,$(libtype.oS),c) $(gnulib)
13 + $(common-objpfx)$(patsubst %,$(libtype.oST),c) $(gnulib)
14 # This is how to find at build-time things that will be installed there.
15 rpath-dirs = math elf dlfcn nss nis rt resolv crypt
17 ifneq (,$(findstring aix,$(config-os)))
18 link-libc = $(common-objpfx)libc.a \
19 - $(common-objpfx)$(patsubst %,$(libtype.oS),c) $(gnulib)
20 + $(common-objpfx)$(patsubst %,$(libtype.oST),c) $(gnulib)
21 rpath-dirs = math dlfcn nss nis rt resolv crypt
25 # The compilation rules use $(CPPFLAGS-${SUFFIX}) and $(CFLAGS-${SUFFIX})
26 # to pass different flags for each flavor.
27 libtypes = $(foreach o,$(object-suffixes-for-libc),$(libtype$o))
28 -all-object-suffixes := .o .os .op .og .ob .oS
29 +all-object-suffixes := .o .os .op .og .ob .oST
31 CPPFLAGS-.o = $(pic-default)
32 CFLAGS-.o = $(filter %frame-pointer,$(+cflags))
35 ifeq (yes,$(build-shared))
36 # Build special library that contains the static-only routines for libc.
37 -object-suffixes-for-libc += .oS
38 +object-suffixes-for-libc += .oST
40 # Must build the routines as PIC, though, because they can end up in (users')
41 # shared objects. We don't want to use CFLAGS-os because users may, for
42 # example, make that processor-specific.
43 -CFLAGS-.oS = $(CFLAGS-.o) $(pic-ccflag)
44 -CPPFLAGS-.oS = $(CPPFLAGS-.o) -DPIC
45 -libtype.oS = lib%_nonshared.a
46 +CFLAGS-.oST = $(CFLAGS-.o) $(pic-ccflag)
47 +CPPFLAGS-.oST = $(CPPFLAGS-.o) -DPIC
48 +libtype.oST = lib%_nonshared.a
52 --- glibc-2.2.5/Makerules~glibc-2.2.5-cygwin.patch 2004-09-03 19:00:33.000000000 -0500
53 +++ glibc-2.2.5/Makerules 2004-09-03 19:00:38.000000000 -0500
55 # Bounded pointer thunks are only built for *.ob
56 elide-bp-thunks = $(addprefix $(bppfx),$(bp-thunks))
58 -elide-routines.oS += $(filter-out $(static-only-routines),\
59 +elide-routines.oST += $(filter-out $(static-only-routines),\
60 $(routines) $(aux) $(sysdep_routines)) \
62 elide-routines.os += $(static-only-routines) $(elide-bp-thunks)
64 # of the files are taken by the linker.
65 install: $(inst_libdir)/libc.so
66 $(inst_libdir)/libc.so: $(common-objpfx)libc.so$(libc.so-version) \
67 - $(inst_libdir)/$(patsubst %,$(libtype.oS),\
68 + $(inst_libdir)/$(patsubst %,$(libtype.oST),\
69 $(libprefix)$(libc-name)) \
71 (echo '/* GNU ld script';\
72 echo ' Use the shared library, but some functions are only in';\
73 echo ' the static library, so try that secondarily. */';\
74 echo 'GROUP ( $(slibdir)/libc.so$(libc.so-version)' \
75 - '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)$(libc-name))'\
76 + '$(libdir)/$(patsubst %,$(libtype.oST),$(libprefix)$(libc-name))'\