Skip to content
Snippets Groups Projects
Verified Commit cbc0ab68 authored by alice's avatar alice
Browse files

testing/criu: fix build

parent 25c63188
No related branches found
No related tags found
1 merge request!39304[3.16] main/expat: security upgrade to 2.4.9
......@@ -15,9 +15,13 @@ subpackages="$pkgname-dev $pkgname-doc py3-$pkgname:_py:noarch"
source="$pkgname-$pkgver.tar.gz::https://github.com/checkpoint-restore/criu/archive/v$pkgver.tar.gz"
build() {
# https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed
export LDFLAGS=$(echo $LDFLAGS |sed 's|-Wl,--as-needed||') PYTHON=python3
make -j1
export PYTHON=python3
make \
CONFIG_AMDGPU=n \
PREFIX=/usr \
DESTDIR="$pkgdir" \
LIBDIR=/usr/lib \
LD="${CC:-gcc}"
}
check() {
......@@ -25,7 +29,12 @@ check() {
}
package() {
make PREFIX=/usr DESTDIR="$pkgdir" LIBDIR=/usr/lib install
make \
CONFIG_AMDGPU=n \
PREFIX=/usr \
DESTDIR="$pkgdir" \
LIBDIR=/usr/lib \
LD="${CC:-gcc}" install
rm "$pkgdir"/usr/libexec/criu/scripts/systemd-autofs-restart.sh
rm -f "$pkgdir"/usr/lib/*.a
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment