rspamd: fix x86_64-musl
This commit is contained in:
parent
9fe2707de3
commit
8e72fd2f72
|
@ -25,12 +25,6 @@ esac
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
hostmakedepends+=" $makedepends"
|
hostmakedepends+=" $makedepends"
|
||||||
|
|
||||||
pre_configure() {
|
|
||||||
configure_args+=" -C $FILESDIR/TryRunResults.cmake"
|
|
||||||
mkdir -p build_native
|
|
||||||
( cd build_native; LD= CC= CFLAGS= LDFLAGS= cmake .. )
|
|
||||||
}
|
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
make -C build_native/contrib/snowball
|
make -C build_native/contrib/snowball
|
||||||
sed -i "s#\./snowball#../../../build_native/contrib/snowball/snowball#g" \
|
sed -i "s#\./snowball#../../../build_native/contrib/snowball/snowball#g" \
|
||||||
|
@ -38,6 +32,19 @@ if [ "$CROSS_BUILD" ]; then
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
*-musl) # Remove non existing library nsl
|
||||||
|
sed -i CMakeLists.txt -e "/LIST(APPEND CMAKE_REQUIRED_LIBRARIES nsl)/d"
|
||||||
|
esac
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
configure_args+=" -C $FILESDIR/TryRunResults.cmake"
|
||||||
|
mkdir -p build_native
|
||||||
|
( cd build_native; LD= CC= CFLAGS= LDFLAGS= cmake .. )
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vsv rspamd
|
vsv rspamd
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
|
|
Loading…
Reference in New Issue