Date: Tuesday, July 7, 2020 @ 21:17:11 Author: foutrelis Revision: 660318
Add -fcommon workaround for GCC 10 Modified: xboard/trunk/PKGBUILD ----------+ PKGBUILD | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-07-07 21:17:10 UTC (rev 660317) +++ PKGBUILD 2020-07-07 21:17:11 UTC (rev 660318) @@ -17,9 +17,14 @@ sha256sums=('2b2e53e8428ad9b6e8dc8a55b3a5183381911a4dae2c0072fa96296bbb1970d6' 'SKIP') +prepare() { + cd "${pkgname}-${pkgver}" + sed -i 's/fairymax/gnuchess/g' {xaw,gtk}/xboard.h xboard.conf +} + build() { cd "${pkgname}-${pkgver}" - sed -i 's/fairymax/gnuchess/g' {xaw,gtk}/xboard.h xboard.conf + CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common ./configure \ --prefix=/usr \ --mandir=/usr/share/man \