This repository has been archived on 2022-01-17. You can view files and clone it, but cannot push or open issues/pull-requests.
2019-08-03 12:06:11 +02:00
|
|
|
|
name: musl
|
|
|
|
|
version: 1.1.23
|
2019-08-26 18:03:31 +02:00
|
|
|
|
release: 3
|
2019-08-03 12:06:11 +02:00
|
|
|
|
sources: https://www.musl-libc.org/releases/musl-%{version}.tar.gz
|
2019-09-03 13:28:56 +02:00
|
|
|
|
|
|
|
|
|
# Edit this if you somehow need to build a prefixed version of musl.
|
|
|
|
|
prefix: /
|
|
|
|
|
|
|
|
|
|
@configure
|
|
|
|
|
cd %{name}-%{version}
|
|
|
|
|
|
|
|
|
|
libdir=/lib
|
|
|
|
|
prefix=/usr/weirdos
|
|
|
|
|
if [ "%{prefix}" != "/" ]; then
|
|
|
|
|
prefix="%{prefix}"
|
|
|
|
|
libdir="%{prefix}/lib"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
|
--prefix=$prefix \
|
|
|
|
|
--libdir=$libdir \
|
|
|
|
|
--syslibdir=$libdir \
|
|
|
|
|
--enable-shared \
|
|
|
|
|
--enable-static
|
2019-08-03 12:06:11 +02:00
|
|
|
|
|
2019-08-25 17:23:54 +02:00
|
|
|
|
@install
|
|
|
|
|
cd %{name}-%{version}
|
|
|
|
|
|
2019-09-03 13:28:56 +02:00
|
|
|
|
libdir=/lib
|
|
|
|
|
if [ "%{prefix}" != "/" ]; then
|
|
|
|
|
libdir="%{prefix}/lib"
|
|
|
|
|
fi
|
|
|
|
|
|
2019-08-25 17:23:54 +02:00
|
|
|
|
make DESTDIR="%{pkg}" install
|
2019-08-26 18:03:31 +02:00
|
|
|
|
|
2019-08-25 17:23:54 +02:00
|
|
|
|
# FIXME: This’ll have to eventually be more automated.
|
|
|
|
|
# FIXME: That path has to be edited on other architectures.
|
|
|
|
|
mkdir -p %{pkg}/etc
|
|
|
|
|
{
|
2019-09-03 13:28:56 +02:00
|
|
|
|
echo $libdir
|
2019-08-25 17:23:54 +02:00
|
|
|
|
echo /usr/weirdos/lib
|
|
|
|
|
echo /usr/bad/lib
|
|
|
|
|
echo /usr/local/lib
|
|
|
|
|
} > %{pkg}/etc/ld-musl-x86_64.path
|
|
|
|
|
|
2019-08-26 18:03:31 +02:00
|
|
|
|
for lib in libm libpthread librt libdl; do
|
2019-09-03 13:28:56 +02:00
|
|
|
|
ln -s $libdir/libc.so "%{pkg}$libdir/${lib}.so"
|
2019-08-26 18:03:31 +02:00
|
|
|
|
done
|
|
|
|
|
|