# Note: enable LSX even on nosimd, LSX header is required for compilation
# but LSX support is not required at runtime
abinfo "Building liblasx2lsx ..."
CFLAGS="$CFLAGS -fPIC -Isrc/include -mlsx -DCONFIG_LOONGARCH_NEW_WORLD" \
DBG_CFLAGS="$CFLAGS -O0" \
make

abinfo "Installing liblasx2lsx ..."
mkdir -pv "$PKGDIR"/usr/lib/
cp -v "$SRCDIR"/*.so "$PKGDIR"/usr/lib/
