[arch-commits] Commit in read-edid/trunk (PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Tue Jul 7 21:17:00 UTC 2020
Date: Tuesday, July 7, 2020 @ 21:17:00
Author: foutrelis
Revision: 660307
Add -fcommon workaround for GCC 10
Modified:
read-edid/trunk/PKGBUILD
----------+
PKGBUILD | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-07 21:16:59 UTC (rev 660306)
+++ PKGBUILD 2020-07-07 21:17:00 UTC (rev 660307)
@@ -14,14 +14,16 @@
source=("http://www.polypux.org/projects/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=('016546e438bf6c98739ff74061df9854')
-build() {
+prepare() {
+ mkdir $pkgname-build
+
# bug in 3.0.2
- pushd $pkgname-$pkgver
- sed -i 's/COPYING/LICENSE/' CMakeLists.txt
- popd
+ sed -i 's/COPYING/LICENSE/' $pkgname-$pkgver/CMakeLists.txt
+}
- mkdir -p $pkgname-build
+build() {
cd $pkgname-build
+ CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
cmake "$srcdir/$pkgname-$pkgver" -DCMAKE_INSTALL_PREFIX="/usr"
make
}
More information about the arch-commits
mailing list