Package Details: ems-flasher-git r139.b88640a-1

Git Clone URL: https://aur.archlinux.org/ems-flasher-git.git (read-only, click to copy)
Package Base: ems-flasher-git
Description: Utility to flash ROM images to the EMS USB 64 mbit gameboy flash cart on Linux
Upstream URL: https://github.com/mikeryan/ems-flasher
Licenses: MIT
Conflicts: ems-flasher
Provides: ems-flasher
Submitter: Vaporeon
Maintainer: Vaporeon
Last Packager: Vaporeon
Votes: 5
Popularity: 0.000257
First Submitted: 2016-11-10 06:19 (UTC)
Last Updated: 2021-12-19 19:32 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

Vaporeon commented on 2021-12-19 19:32 (UTC)

Thanks, applied.

qguv commented on 2021-12-10 19:36 (UTC)

From 0a0e1bdbab9654a99f69388b232316acc5631d83 Mon Sep 17 00:00:00 2001
From: Quint Guvernator <quint@guvernator.net>
Date: Wed, 8 Dec 2021 11:12:31 +0100
Subject: [PATCH] add -fcommon to CFLAGS to support recent gcc

Since GCC version 10, this code will not build unless `-fcommon` is
added to `CFLAGS`, see this comment in the associated upstream issue:

https://github.com/mikeryan/ems-flasher/issues/26#issuecomment-812134344

Since the current version of GCC in the Arch repos is 11.1.0, I think
this package should set this extra CFLAG when building.
---
 PKGBUILD | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PKGBUILD b/PKGBUILD
index bec576cd5d05..be2419f2084c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,6 +22,7 @@ pkgver() {
 build() {
   cd "$srcdir"/ems-flasher
   ./config.sh --prefix /usr
+  sed -i '/^CFLAGS/ s/$/ -fcommon/' Makefile
   make
 }

-- 
2.34.1