rspamd: fix x86_64-musl
This commit is contained in:
parent
9fe2707de3
commit
8e72fd2f72
1 changed files with 13 additions and 6 deletions
|
@ -25,12 +25,6 @@ esac
|
|||
if [ "$CROSS_BUILD" ]; then
|
||||
hostmakedepends+=" $makedepends"
|
||||
|
||||
pre_configure() {
|
||||
configure_args+=" -C $FILESDIR/TryRunResults.cmake"
|
||||
mkdir -p build_native
|
||||
( cd build_native; LD= CC= CFLAGS= LDFLAGS= cmake .. )
|
||||
}
|
||||
|
||||
pre_build() {
|
||||
make -C build_native/contrib/snowball
|
||||
sed -i "s#\./snowball#../../../build_native/contrib/snowball/snowball#g" \
|
||||
|
@ -38,6 +32,19 @@ if [ "$CROSS_BUILD" ]; then
|
|||
}
|
||||
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() {
|
||||
vsv rspamd
|
||||
vlicense LICENSE
|
||||
|
|
Loading…
Reference in a new issue