20 lines
333 B
Bash
Executable File
20 lines
333 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
set -ex
|
|
|
|
cd src/mes-libc
|
|
|
|
# Patch
|
|
patch -Np0 -i ../../patches/mes-libc-qsort.patch
|
|
patch -Np0 -i ../../patches/mes-libc-crt1.patch
|
|
|
|
# Recompile libc
|
|
cd ../tcc-0.9.27
|
|
kaem --file ../../compile-libc.kaem
|
|
|
|
cd ../..
|