Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2019 16:03:40 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r497160 - in head/comms/sunxi-tools: . files
Message-ID:  <201903291603.x2TG3eOG002224@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Fri Mar 29 16:03:39 2019
New Revision: 497160
URL: https://svnweb.freebsd.org/changeset/ports/497160

Log:
  Fix build on GCC-based architectures:
  
    unrecognized command line option "-Wno-unused-result"
  
  PR:		235540
  Submitted by:	Piotr Kubaj
  Approved by:	portmgr (tier-2 blanket)

Modified:
  head/comms/sunxi-tools/Makefile
  head/comms/sunxi-tools/files/patch-Makefile

Modified: head/comms/sunxi-tools/Makefile
==============================================================================
--- head/comms/sunxi-tools/Makefile	Fri Mar 29 15:56:12 2019	(r497159)
+++ head/comms/sunxi-tools/Makefile	Fri Mar 29 16:03:39 2019	(r497160)
@@ -11,10 +11,6 @@ COMMENT=	Tools to help hacking Allwinner devices
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/LICENSE.md
 
-BROKEN_mips=		fails to build: unrecognized command line option "-Wno-unused-result"
-BROKEN_mips64=		fails to build: unrecognized command line option "-Wno-unused-result"
-BROKEN_powerpc64=	fails to build: unrecognized command line option "-Wno-unused-result"
-
 USES=		gmake pkgconfig
 USE_GITHUB=	yes
 GH_ACCOUNT=	linux-sunxi

Modified: head/comms/sunxi-tools/files/patch-Makefile
==============================================================================
--- head/comms/sunxi-tools/files/patch-Makefile	Fri Mar 29 15:56:12 2019	(r497159)
+++ head/comms/sunxi-tools/files/patch-Makefile	Fri Mar 29 16:03:39 2019	(r497160)
@@ -1,14 +1,16 @@
 --- Makefile.orig	2016-11-29 13:07:51 UTC
 +++ Makefile
-@@ -17,7 +17,7 @@
+@@ -17,8 +17,8 @@
  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
  CC ?= gcc
 -DEFAULT_CFLAGS := -std=c99
+-DEFAULT_CFLAGS += -Wall -Wextra -Wno-unused-result
 +DEFAULT_CFLAGS += -std=c99
- DEFAULT_CFLAGS += -Wall -Wextra -Wno-unused-result
++DEFAULT_CFLAGS += -Wall -Wextra
  
  DEFAULT_CFLAGS += -D_POSIX_C_SOURCE=200112L
+ # Define _BSD_SOURCE, necessary to expose all endian conversions properly.
 @@ -63,7 +63,7 @@ BINDIR  ?= $(PREFIX)/bin
  tools: $(TOOLS) $(FEXC_LINKS)
  target-tools: $(TARGET_TOOLS)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903291603.x2TG3eOG002224>