Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Nov 2016 18:39:57 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r425901 - head/cad/gspiceui
Message-ID:  <201611111839.uABIdvsg075442@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.pre.mk>
+
+.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 <bsd.port.mk>
+.include <bsd.port.post.mk>



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