Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
- "add_to_path": []
"builds":
"default":
"build_dependencies": []
"configure": |
# Rebuild all
mkdir -p "$BUILD_DIR/source"
extract.sh --into "$BUILD_DIR/source" https://ftp.gnu.org/gnu/glibc/glibc-2.13.tar.xz
sed -i 's|test -n ".critic_missing"|false|g' "$BUILD_DIR/source/configure"
sed -i 's|struct obstack ._obstack_compat|\0 = 0|g' "$BUILD_DIR/source/malloc/obstack.c"
patch-if-exists "${ORCHESTRA_DOTDIR}/patches/glibc-2.13-fix-isinf.patch" "$BUILD_DIR/source"
# Create __libc_single_threaded symbol (required by recent libstdc++)
echo 'char __libc_single_threaded;' >> "$BUILD_DIR/source/misc/error.c"
sed -i \
's/GLIBC_2.13/GLIBC_2.13\n GLIBC_2.32/' \
"$BUILD_DIR/source/Versions.def"
sed -i \
's/^}/ GLIBC_2.32 {\n __libc_single_threaded;\n }\n}/g' \
"$BUILD_DIR/source/misc/Versions"
cd $BUILD_DIR
export CC="cc -no-pie -fuse-ld=bfd -Wl,-z,origin -Wl,--enable-new-dtags -Wl,-rpath,$RPATH_PLACEHOLDER/link-only/lib"
./source/configure \
--disable-profile \
--without-gd \
--enable-crypt \
--disable-static-pie \
--disable-systemtap \
--disable-nscd \
--disable-timezone-tools \
--enable-stack-protector=strong \
--enable-stackguard-randomization \
--disable-cet \
--without-selinux \
--without-cvs \
--disable-werror \
--enable-bind-now \
--disable-sanity-checks \
--prefix="$INSTALL_LINK_ONLY_PATH" \
CFLAGS="-w -O2 -fno-stack-protector -DNDEBUG -march=core2 -U_FORTIFY_SOURCE"
"dependencies": []
"install": |+
cd "$BUILD_DIR"
make ${JOBS:+-j$JOBS}
make ${JOBS:+-j$JOBS} install_root="$DESTDIR" install
sed -i "s|$INSTALL_LINK_ONLY_PATH/lib/||g" \
"$DESTDIR$INSTALL_LINK_ONLY_PATH/lib/libpthread.so" \
"$DESTDIR$INSTALL_LINK_ONLY_PATH/lib/libc.so"
ln -s . "$DESTDIR$INSTALL_LINK_ONLY_PATH/usr"
rm -f "$DESTDIR$INSTALL_LINK_ONLY_PATH"/libexec/getconf/POSIX_V7_LP64_OFF64*
rm -rf "$DESTDIR$INSTALL_LINK_ONLY_PATH"/bin
cp -a "$DESTDIR$INSTALL_LINK_ONLY_PATH"/lib/*.o "$DESTDIR$ORCHESTRA_ROOT"/lib/
# This file is needed because gcc fixinclude detects it when bootstrapping toolchains
touch "$DESTDIR$INSTALL_LINK_ONLY_PATH/include/stdc-predef.h"
"ndebug": !!bool |-
true
"commit": !!null |-
null
"default_build": |-
default
"license": |-
source/COPYING
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
- "add_to_path": []
"builds":
"default":
"build_dependencies":
- |-
glibc
"configure": |
mkdir -p "$BUILD_DIR"
extract.sh --into "$BUILD_DIR" "https://gmplib.org/download/gmp/gmp-6.1.2.tar.xz"
cd "$BUILD_DIR" && ./configure \
--prefix="$ORCHESTRA_ROOT" \
--enable-shared=no \
--enable-fat \
CFLAGS="-fPIC" \
CXXFLAGS="-fPIC" \
LDFLAGS="-static-libgcc"
"dependencies": []
"install": |
cd "$BUILD_DIR"
make ${JOBS:+-j$JOBS}
make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
"ndebug": !!bool |-
true
"commit": !!null |-
null
"default_build": |-
default
"license": |-
COPYING
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
- "add_to_path": []
"builds":
"default":
"build_dependencies":
- |-
glibc
"configure": |
mkdir -p "$BUILD_DIR"
extract.sh --into "$BUILD_DIR" https://www.mpfr.org/mpfr-4.1.0/mpfr-4.1.0.tar.xz
cd "$BUILD_DIR" && ./configure \
--prefix="$ORCHESTRA_ROOT" \
--with-gmp="$ORCHESTRA_ROOT" \
--enable-shared=no \
CFLAGS="-fPIC" \
CXXFLAGS="-fPIC" \
LDFLAGS="-static-libgcc"
"dependencies":
- |-
gmp
"install": |
cd "$BUILD_DIR"
make ${JOBS:+-j$JOBS}
make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
"ndebug": !!bool |-
true
"commit": !!null |-
null
"default_build": |-
default
"license": |-
COPYING
"repository": !!null |-
null
"skip_post_install": !!bool |-
false