yann@1
|
1 |
Fixes
|
yann@1
|
2 |
elf/librtld.os: In function `process_envvars': : undefined reference to `__access'
|
yann@1
|
3 |
...
|
yann@1
|
4 |
when building glibc-2.3.3 on cygwin
|
yann@1
|
5 |
|
yann@1
|
6 |
Idea from
|
yann@1
|
7 |
http://sources.redhat.com/ml/bug-glibc/2002-01/msg00071/glibc-2.2-cygin-shared.patch
|
yann@1
|
8 |
Basically, make glibc use .oST as suffix for 'object static'
|
yann@1
|
9 |
instead of .oS, since cygwin has trouble distinguishing .os from .oS
|
yann@1
|
10 |
(Original patch had .on, but .oST is more mnemonic for 'object static')
|
yann@1
|
11 |
|
yann@1
|
12 |
glibc-linuxthreads-2.3.3 also requires a patch, see
|
yann@1
|
13 |
../glibc-linuxthreads-2.3.3/glibc-linuxthreads-2.3.3-cygwin.patch
|
yann@1
|
14 |
|
yann@1
|
15 |
[ Rediffed against glibc-2.3.3 ]
|
yann@1
|
16 |
|
yann@1
|
17 |
|
yann@1
|
18 |
diff -urN glibc-2.3.4-orig/Makeconfig glibc-2.3.4/Makeconfig
|
yann@1
|
19 |
--- glibc-2.3.4-orig/Makeconfig 2004-12-15 19:51:47.000000000 +0100
|
yann@1
|
20 |
+++ glibc-2.3.4/Makeconfig 2005-03-13 18:54:58.000000000 +0100
|
yann@1
|
21 |
@@ -449,7 +449,7 @@
|
yann@1
|
22 |
# run the linked programs.
|
yann@1
|
23 |
link-libc = -Wl,-rpath-link=$(rpath-link) \
|
yann@1
|
24 |
$(common-objpfx)libc.so$(libc.so-version) \
|
yann@1
|
25 |
- $(common-objpfx)$(patsubst %,$(libtype.oS),c) $(gnulib)
|
yann@1
|
26 |
+ $(common-objpfx)$(patsubst %,$(libtype.oST),c) $(gnulib)
|
yann@1
|
27 |
# This is how to find at build-time things that will be installed there.
|
yann@1
|
28 |
rpath-dirs = math elf dlfcn nss nis rt resolv crypt
|
yann@1
|
29 |
endif
|
yann@1
|
30 |
@@ -667,7 +667,7 @@
|
yann@1
|
31 |
# The compilation rules use $(CPPFLAGS-${SUFFIX}) and $(CFLAGS-${SUFFIX})
|
yann@1
|
32 |
# to pass different flags for each flavor.
|
yann@1
|
33 |
libtypes = $(foreach o,$(object-suffixes-for-libc),$(libtype$o))
|
yann@1
|
34 |
-all-object-suffixes := .o .os .op .og .ob .oS
|
yann@1
|
35 |
+all-object-suffixes := .o .os .op .og .ob .oST
|
yann@1
|
36 |
object-suffixes :=
|
yann@1
|
37 |
CPPFLAGS-.o = $(pic-default)
|
yann@1
|
38 |
CFLAGS-.o = $(filter %frame-pointer,$(+cflags))
|
yann@1
|
39 |
@@ -723,14 +723,14 @@
|
yann@1
|
40 |
|
yann@1
|
41 |
ifeq (yes,$(build-shared))
|
yann@1
|
42 |
# Build special library that contains the static-only routines for libc.
|
yann@1
|
43 |
-object-suffixes-for-libc += .oS
|
yann@1
|
44 |
+object-suffixes-for-libc += .oST
|
yann@1
|
45 |
|
yann@1
|
46 |
# Must build the routines as PIC, though, because they can end up in (users')
|
yann@1
|
47 |
# shared objects. We don't want to use CFLAGS-os because users may, for
|
yann@1
|
48 |
# example, make that processor-specific.
|
yann@1
|
49 |
-CFLAGS-.oS = $(CFLAGS-.o) $(PIC-ccflag)
|
yann@1
|
50 |
-CPPFLAGS-.oS = $(CPPFLAGS-.o) -DPIC -DLIBC_NONSHARED=1
|
yann@1
|
51 |
-libtype.oS = lib%_nonshared.a
|
yann@1
|
52 |
+CFLAGS-.oST = $(CFLAGS-.o) $(pic-ccflag)
|
yann@1
|
53 |
+CPPFLAGS-.oST = $(CPPFLAGS-.o) -DPIC -DLIBC_NONSHARED=1
|
yann@1
|
54 |
+libtype.oST = lib%_nonshared.a
|
yann@1
|
55 |
endif
|
yann@1
|
56 |
|
yann@1
|
57 |
# The assembler can generate debug information too.
|
yann@1
|
58 |
diff -urN glibc-2.3.4-orig/Makerules glibc-2.3.4/Makerules
|
yann@1
|
59 |
--- glibc-2.3.4-orig/Makerules 2004-12-15 19:52:39.000000000 +0100
|
yann@1
|
60 |
+++ glibc-2.3.4/Makerules 2005-03-13 18:50:09.000000000 +0100
|
yann@1
|
61 |
@@ -416,7 +416,7 @@
|
yann@1
|
62 |
# Bounded pointer thunks are only built for *.ob
|
yann@1
|
63 |
elide-bp-thunks = $(addprefix $(bppfx),$(bp-thunks))
|
yann@1
|
64 |
|
yann@1
|
65 |
-elide-routines.oS += $(filter-out $(static-only-routines),\
|
yann@1
|
66 |
+elide-routines.oST += $(filter-out $(static-only-routines),\
|
yann@1
|
67 |
$(routines) $(aux) $(sysdep_routines)) \
|
yann@1
|
68 |
$(elide-bp-thunks)
|
yann@1
|
69 |
elide-routines.os += $(static-only-routines) $(elide-bp-thunks)
|
yann@1
|
70 |
@@ -961,7 +961,7 @@
|
yann@1
|
71 |
install: $(inst_libdir)/libc.so
|
yann@1
|
72 |
$(inst_libdir)/libc.so: $(common-objpfx)format.lds \
|
yann@1
|
73 |
$(common-objpfx)libc.so$(libc.so-version) \
|
yann@1
|
74 |
- $(inst_libdir)/$(patsubst %,$(libtype.oS),\
|
yann@1
|
75 |
+ $(inst_libdir)/$(patsubst %,$(libtype.oST),\
|
yann@1
|
76 |
$(libprefix)$(libc-name)) \
|
yann@1
|
77 |
$(+force)
|
yann@1
|
78 |
(echo '/* GNU ld script';\
|
yann@1
|
79 |
@@ -969,7 +969,7 @@
|
yann@1
|
80 |
echo ' the static library, so try that secondarily. */';\
|
yann@1
|
81 |
cat $<; \
|
yann@1
|
82 |
echo 'GROUP ( $(slibdir)/libc.so$(libc.so-version)' \
|
yann@1
|
83 |
- '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)$(libc-name))'\
|
yann@1
|
84 |
+ '$(libdir)/$(patsubst %,$(libtype.oST),$(libprefix)$(libc-name))'\
|
yann@1
|
85 |
')' \
|
yann@1
|
86 |
) > $@.new
|
yann@1
|
87 |
mv -f $@.new $@
|
yann@1
|
88 |
diff -urN glibc-2.3.4-orig/sysdeps/sparc/sparc32/sparcv9/Makefile glibc-2.3.4/sysdeps/sparc/sparc32/sparcv9/Makefile
|
yann@1
|
89 |
--- glibc-2.3.4-orig/sysdeps/sparc/sparc32/sparcv9/Makefile 2004-08-16 08:46:14.000000000 +0200
|
yann@1
|
90 |
+++ glibc-2.3.4/sysdeps/sparc/sparc32/sparcv9/Makefile 2005-03-13 18:50:09.000000000 +0100
|
yann@1
|
91 |
@@ -10,4 +10,4 @@
|
yann@1
|
92 |
ASFLAGS-.op += -Wa,-Av9a
|
yann@1
|
93 |
ASFLAGS-.og += -Wa,-Av9a
|
yann@1
|
94 |
ASFLAGS-.ob += -Wa,-Av9a
|
yann@1
|
95 |
-ASFLAGS-.oS += -Wa,-Av9a
|
yann@1
|
96 |
+ASFLAGS-.oST += -Wa,-Av9a
|