From owner-svn-ports-all@freebsd.org Fri Nov 11 18:39:58 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 559F7C3B283; Fri, 11 Nov 2016 18:39:58 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 24EF2154A; Fri, 11 Nov 2016 18:39:58 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uABIdv9U075443; Fri, 11 Nov 2016 18:39:57 GMT (envelope-from antoine@FreeBSD.org) Received: (from antoine@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uABIdvsg075442; Fri, 11 Nov 2016 18:39:57 GMT (envelope-from antoine@FreeBSD.org) Message-Id: <201611111839.uABIdvsg075442@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: antoine set sender to antoine@FreeBSD.org using -f From: Antoine Brodin Date: Fri, 11 Nov 2016 18:39:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r425901 - head/cad/gspiceui X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2016 18:39:58 -0000 Author: antoine Date: Fri Nov 11 18:39:57 2016 New Revision: 425901 URL: https://svnweb.freebsd.org/changeset/ports/425901 Log: Fix build with gcc 4.9 by lowering optimization level See also: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750743 https://bugs.gentoo.org/show_bug.cgi?id=553968 PR: 196712 Modified: head/cad/gspiceui/Makefile Modified: head/cad/gspiceui/Makefile ============================================================================== --- head/cad/gspiceui/Makefile Fri Nov 11 18:37:08 2016 (r425900) +++ head/cad/gspiceui/Makefile Fri Nov 11 18:39:57 2016 (r425901) @@ -29,6 +29,12 @@ PORTEXAMPLES= * PLIST_FILES= bin/gspiceui share/pixmaps/gspiceui-48x48.xpm \ man/man1/gspiceui.1.gz +.include + +.if ${CHOSEN_COMPILER_TYPE} == gcc +CFLAGS:= ${CFLAGS:C/-O[2-9]/-O1/g} +.endif + post-patch: @${REINPLACE_CMD} -e 's|share/gspiceui|${DOCSDIR}|g' \ ${WRKSRC}/src/main/HelpTasks.cpp @@ -47,4 +53,4 @@ do-install: "! -name Makefile") .endfor -.include +.include