PKGNAME=musl
PKGSEC=devel
PKGDES="Lightweight implementation of C standard library"

NOSTATIC=0
# LTO leads to the following issue
# /bin/ld: /tmp/ccsqtHnb.ltrans0.ltrans.o: in function `_dlstart':
# <artificial>:(.text+0x12): undefined reference to `_dlstart_c'
# collect2: error: ld returned 1 exit status
NOLTO=1

ABTYPE=autosetup
AUTOSETUP_AFTER=(
    '--prefix=/opt/musl'
    '--exec-prefix=/opt/musl'
    '--enable-wrapper=all'
    '--syslibdir=/usr/lib'
)
