1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Fix the build with GCC 6.

While here, drop USE_GCC=yes, as the port was verified to build with clang on
both HEAD-amd64 and 10.3-i386.

PR:		219288
Approved by:	maintainer timeout (amdmi3, 18 days)
This commit is contained in:
Raphael Kubo da Costa 2017-08-12 13:21:07 +00:00
parent ee30f238a6
commit 0b39c99dba
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=447829
2 changed files with 18 additions and 2 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= drgeo
PORTVERSION= 1.1.0
PORTREVISION= 19
PORTREVISION= 20
CATEGORIES= math
MASTER_SITES= SF/ofset/${PORTNAME}/${PORTVERSION}
@ -17,7 +17,6 @@ USES= gettext gmake pkgconfig pathfix
USE_GNOME= gnomeprefix intlhack libglade2
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USE_GCC= yes # segfaults when built with clang
PORTDATA= *

View File

@ -0,0 +1,17 @@
Fix the build with GCC >= 6.
drgeo_figure.cc: At global scope:
drgeo_figure.cc:56:1: error: '<anonymous struct> drgeoDialogData', declared using anonymous type, is used but never defined [-fpermissive]
drgeoDialogData;
^~~~~~~~~~~~~~~
--- geo/drgeo_figure.cc.orig 2017-07-25 16:56:59 UTC
+++ geo/drgeo_figure.cc
@@ -48,7 +48,7 @@
#include "drgeo_dialog.h"
#include "traite.h"
-extern struct
+struct
{
drgeoPoint mouse;
drgeoFigure *figure;