Obsolete
/
recipes
Archived
3
0
Fork 0
This repository has been archived on 2022-01-17. You can view files and clone it, but cannot push or open issues/pull-requests.
recipes/musl/recipe.spec

28 lines
667 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

name: musl
version: 1.1.23
release: 3
sources: https://www.musl-libc.org/releases/musl-%{version}.tar.gz
options:
- configure: --prefix=/usr --libdir=/lib --syslibdir=/lib --enable-shared --enable-static
@install
cd %{name}-%{version}
make DESTDIR="%{pkg}" install
# FIXME: Thisll have to eventually be more automated.
# FIXME: That path has to be edited on other architectures.
mkdir -p %{pkg}/etc
{
echo /lib
echo /usr/weirdos/lib
echo /usr/bad/lib
echo /usr/local/lib
} > %{pkg}/etc/ld-musl-x86_64.path
for lib in libm libpthread librt libdl; do
ln -s /lib/libc.a "%{pkg}/lib/${lib}.a"
ln -s /lib/libc.so "%{pkg}/lib/${lib}.so"
done