]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/glibc/glibc-2.2.5/glibc-2.2.5-cygwin.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / glibc / glibc-2.2.5 / glibc-2.2.5-cygwin.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
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
8 @@ -439,13 +439,13 @@
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
16  else
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
22  endif
23  endif
24 @@ -649,7 +649,7 @@
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
30  object-suffixes :=
31  CPPFLAGS-.o = $(pic-default)
32  CFLAGS-.o = $(filter %frame-pointer,$(+cflags))
33 @@ -703,14 +703,14 @@
34  
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
39  
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
49  endif
50  
51  
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
54 @@ -361,7 +361,7 @@
55  # Bounded pointer thunks are only built for *.ob
56  elide-bp-thunks = $(addprefix $(bppfx),$(bp-thunks))
57  
58 -elide-routines.oS += $(filter-out $(static-only-routines),\
59 +elide-routines.oST += $(filter-out $(static-only-routines),\
60                                   $(routines) $(aux) $(sysdep_routines)) \
61                      $(elide-bp-thunks)
62  elide-routines.os += $(static-only-routines) $(elide-bp-thunks)
63 @@ -842,14 +842,14 @@
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)) \
70                         $(+force)
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))'\
77               ')' \
78         ) > $@.new
79         mv -f $@.new $@