File tree 4 files changed +660
-4
lines changed
4 files changed +660
-4
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,13 @@ glibc_source() {
167
167
-xvJ \
168
168
--strip-components=1 \
169
169
-f " $GLIBC_SRC_TAR "
170
+ abinfo " Applying Glibc patches ..."
171
+ while IFS= read -r patch; do
172
+ abinfo " Applying $patch ..."
173
+ patch -p 1 -d " $BLDDIR /src/glibc" \
174
+ < " $SRCDIR /autobuild/patches/glibc/$patch "
175
+ done < " $SRCDIR /autobuild/patches/glibc/series"
176
+
170
177
}
171
178
172
179
glibc_build () {
@@ -208,16 +215,22 @@ EOF
208
215
env -i " PATH=$new_PATH " " MAKEFLAGS=$MAKEFLAGS " \
209
216
make " $PWD /libc_pic.a"
210
217
env -i " PATH=$new_PATH " " MAKEFLAGS=$MAKEFLAGS " \
211
- make " $PWD /elf/ld.so.1" \
218
+ make -C " $BLDDIR /src/glibc/elf " " $PWD /elf/ld.so.1" \
212
219
subdir=elf \
213
- -C " $BLDDIR /src/glibc/elf" \
214
220
..=../ \
215
221
objdir=" $PWD "
216
222
env -i " PATH=$new_PATH " " MAKEFLAGS=$MAKEFLAGS " \
217
- make " $PWD /elf/ libc.so"
223
+ make " $PWD /libc.so" " nptl/subdir_lib "
218
224
env -i " PATH=$new_PATH " \
219
225
make elf/ldso_install " $PKGDIR$LOLPREFIX /lib/$OWTARGET /libc.so.6" \
220
- DESTDIR=" $PKGDIR " \
226
+ DESTDIR=" $PKGDIR "
227
+ env -i " PATH=$new_PATH " \
228
+ make -C " $BLDDIR /src/glibc/nptl" \
229
+ " $PKGDIR$LOLPREFIX /lib/$OWTARGET /libpthread.so" \
230
+ subdir=nptl \
231
+ ..=../ \
232
+ objdir=" $PWD " \
233
+ DESTDIR=" $PKGDIR "
221
234
222
235
mkdir -pv " $PKGDIR /usr/lib" # /lib64 is /usr/lib on AOSC
223
236
ln -sfvr " $PKGDIR$LOLPREFIX /lib/$OWTARGET /ld-$GLIBC_VER .so" \
Original file line number Diff line number Diff line change
1
+ : "Do nothing"
You can’t perform that action at this time.
0 commit comments