Date: Tuesday, July 7, 2020 @ 21:16:21 Author: foutrelis Revision: 660272
Add -fcommon workaround for GCC 10 Modified: gcolor2/trunk/PKGBUILD ----------+ PKGBUILD | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-07-07 21:16:20 UTC (rev 660271) +++ PKGBUILD 2020-07-07 21:16:21 UTC (rev 660272) @@ -18,12 +18,18 @@ '5791378f6f86dd25a302ad8586292dd6' '1bbc11865df2a0529757cdbdf806b079') -build() { +prepare() { cd "${srcdir}/${pkgname}-${pkgver}" + [ "$CARCH" == "x86_64" ] && (patch -p1 < ../gcolor2-0.4-amd64.patch) # fix fs#25904 sed -i 's/\[:space:\]/[&]/g' configure +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common ./configure --prefix=/usr make }