From e96e0aa73c74f83815cb254ba69d9908ea5dacf8 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Mon, 25 Jan 2021 03:21:31 +0300 Subject: [PATCH] workaround for unreasonable rebuilding in package() --- pkg/arch/PKGBUILD | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkg/arch/PKGBUILD b/pkg/arch/PKGBUILD index fee5597..b2d95d2 100644 --- a/pkg/arch/PKGBUILD +++ b/pkg/arch/PKGBUILD @@ -28,20 +28,21 @@ if [ -e /opt/vc/include/IL/OMX_Core.h ]; then fi +# LD does not link mmal with this option +# This DOESN'T affect setup.py +LDFLAGS="${LDFLAGS//--as-needed/}" +export LDFLAGS="${LDFLAGS//,,/,}" + + build() { cd "$srcdir" rm -rf $pkgname-build cp -r $pkgname $pkgname-build cd $pkgname-build - - # LD does not link mmal with this option - LDFLAGS="${LDFLAGS//--as-needed/}" - LDFLAGS="${LDFLAGS//,,/,}" - make $_options CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" $MAKEFLAGS } package() { cd "$srcdir/$pkgname-build" - make $_options DESTDIR="$pkgdir" PREFIX=/usr install + make $_options CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" DESTDIR="$pkgdir" PREFIX=/usr install }