Add D.U.M.A., the Electric Fence successor.
2 elf/librtld.os: In function `process_envvars': : undefined reference to `__access'
4 when building glibc-2.3.2 on cygwin
7 http://sources.redhat.com/ml/bug-glibc/2002-01/msg00071/glibc-2.2-cygin-shared.patch
8 forward ported to glibc-2.3.2.
9 Basically, make glibc use .oST as suffix for 'object static'
10 instead of .oS, since cygwin has trouble distinguishing .os from .oS
11 (Original patch had .on, but .oST is more mnemonic for 'object static')
14 diff -Naur from-cvs/Makeconfig patched/Makeconfig
15 --- from-cvs/Makeconfig Fri Jan 11 14:40:35 2002
16 +++ patched/Makeconfig Fri Jan 11 15:07:30 2002
18 # run the linked programs.
19 link-libc = -Wl,-rpath-link=$(rpath-link) \
20 $(common-objpfx)libc.so$(libc.so-version) \
21 - $(common-objpfx)$(patsubst %,$(libtype.oS),c) $(gnulib)
22 + $(common-objpfx)$(patsubst %,$(libtype.oST),c) $(gnulib)
23 # This is how to find at build-time things that will be installed there.
24 rpath-dirs = math elf dlfcn nss nis rt resolv crypt
26 ifneq (,$(findstring aix,$(config-os)))
27 link-libc = $(common-objpfx)libc.a \
28 - $(common-objpfx)$(patsubst %,$(libtype.oS),c) $(gnulib)
29 + $(common-objpfx)$(patsubst %,$(libtype.oST),c) $(gnulib)
30 rpath-dirs = math dlfcn nss nis rt resolv crypt
34 # The compilation rules use $(CPPFLAGS-${SUFFIX}) and $(CFLAGS-${SUFFIX})
35 # to pass different flags for each flavor.
36 libtypes = $(foreach o,$(object-suffixes-for-libc),$(libtype$o))
37 -all-object-suffixes := .o .os .op .og .ob .oS
38 +all-object-suffixes := .o .os .op .og .ob .oST
40 CPPFLAGS-.o = $(pic-default)
41 CFLAGS-.o = $(filter %frame-pointer,$(+cflags))
44 ifeq (yes,$(build-shared))
45 # Build special library that contains the static-only routines for libc.
46 -object-suffixes-for-libc += .oS
47 +object-suffixes-for-libc += .oST
49 # Must build the routines as PIC, though, because they can end up in (users')
50 # shared objects. We don't want to use CFLAGS-os because users may, for
51 # example, make that processor-specific.
52 -CFLAGS-.oS = $(CFLAGS-.o) $(pic-ccflag)
53 -CPPFLAGS-.oS = $(CPPFLAGS-.o) -DPIC
54 -libtype.oS = lib%_nonshared.a
55 +CFLAGS-.oST = $(CFLAGS-.o) $(pic-ccflag)
56 +CPPFLAGS-.oST = $(CPPFLAGS-.o) -DPIC
57 +libtype.oST = lib%_nonshared.a
61 diff -Naur from-cvs/Makerules patched/Makerules
62 --- from-cvs/Makerules Fri Jan 11 14:40:42 2002
63 +++ patched/Makerules Fri Jan 11 15:06:00 2002
65 # Bounded pointer thunks are only built for *.ob
66 elide-bp-thunks = $(addprefix $(bppfx),$(bp-thunks))
68 -elide-routines.oS += $(filter-out $(static-only-routines),\
69 +elide-routines.oST += $(filter-out $(static-only-routines),\
70 $(routines) $(aux) $(sysdep_routines)) \
72 elide-routines.os += $(static-only-routines) $(elide-bp-thunks)
74 # of the files are taken by the linker.
75 install: $(inst_libdir)/libc.so
76 $(inst_libdir)/libc.so: $(common-objpfx)libc.so$(libc.so-version) \
77 - $(inst_libdir)/$(patsubst %,$(libtype.oS),\
78 + $(inst_libdir)/$(patsubst %,$(libtype.oST),\
79 $(libprefix)$(libc-name)) \
81 (echo '/* GNU ld script';\
82 echo ' Use the shared library, but some functions are only in';\
83 echo ' the static library, so try that secondarily. */';\
84 echo 'GROUP ( $(slibdir)/libc.so$(libc.so-version)' \
85 - '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)$(libc-name))'\
86 + '$(libdir)/$(patsubst %,$(libtype.oST),$(libprefix)$(libc-name))'\