[arch-commits] Commit in lmms/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Wed Dec 29 13:26:58 UTC 2021
Date: Wednesday, December 29, 2021 @ 13:26:58
Author: dvzrv
Revision: 1087182
upgpkg: lmms 1.2.2-7: Rebuild to fix issues with LTO.
Add -ffat-lto-objects to CXXFLAGS to prevent mangled static libs.
Simplify calls to cmake and make in build() and package().
Remove unneeded export of LDFLAGS.
Modified:
lmms/trunk/PKGBUILD
----------+
PKGBUILD | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-29 13:26:26 UTC (rev 1087181)
+++ PKGBUILD 2021-12-29 13:26:58 UTC (rev 1087182)
@@ -6,7 +6,7 @@
pkgname=lmms
pkgver=1.2.2
-pkgrel=6
+pkgrel=7
pkgdesc='The Linux MultiMedia Studio'
arch=(x86_64)
url="https://lmms.io"
@@ -36,8 +36,9 @@
}
build() {
- cd "${pkgname}-${pkgver}"
- export LDFLAGS="${LDFLAGS}"
+ # prevent mangling of static libs with LTO
+ CXXFLAGS+=' -ffat-lto-objects'
+
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE='None' \
-DWANT_QT5=ON \
@@ -50,7 +51,7 @@
-DOpenGL_GL_PREFERENCE=GLVND \
-W no-dev \
-B build \
- -S .
+ -S "${pkgname}-${pkgver}"
make VERBOSE=1 -C build
}
@@ -59,6 +60,5 @@
libogg.so libportaudio.so libpulse.so libstk-4.6.2.so libvorbis.so
libvorbisenc.so libvorbisfile.so libsamplerate.so)
- cd "${pkgname}-${pkgver}"
make VERBOSE=1 DESTDIR="${pkgdir}" install -C build
}
More information about the arch-commits
mailing list