From owner-svn-ports-head@freebsd.org Wed Feb 28 10:53:53 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0D688F3D3E0; Wed, 28 Feb 2018 10:53:53 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B2E9A7112F; Wed, 28 Feb 2018 10:53:52 +0000 (UTC) (envelope-from tcberner@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AD982188B1; Wed, 28 Feb 2018 10:53:52 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w1SArqis038776; Wed, 28 Feb 2018 10:53:52 GMT (envelope-from tcberner@FreeBSD.org) Received: (from tcberner@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w1SArquo038775; Wed, 28 Feb 2018 10:53:52 GMT (envelope-from tcberner@FreeBSD.org) Message-Id: <201802281053.w1SArquo038775@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tcberner set sender to tcberner@FreeBSD.org using -f From: "Tobias C. Berner" Date: Wed, 28 Feb 2018 10:53:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r463193 - head/lang/hugs X-SVN-Group: ports-head X-SVN-Commit-Author: tcberner X-SVN-Commit-Paths: head/lang/hugs X-SVN-Commit-Revision: 463193 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Feb 2018 10:53:53 -0000 Author: tcberner Date: Wed Feb 28 10:53:52 2018 New Revision: 463193 URL: https://svnweb.freebsd.org/changeset/ports/463193 Log: devel/hugs: workaround to fix build on current runhugs binary crashes when compiled with -O2 on i386 12-CURRENT system. Workaround it by compiling with -O0 Submitted by: Gleb Popov <6yearold_gmail.com> Differential Revision: https://reviews.freebsd.org/D14187 Modified: head/lang/hugs/Makefile Modified: head/lang/hugs/Makefile ============================================================================== --- head/lang/hugs/Makefile Wed Feb 28 09:33:02 2018 (r463192) +++ head/lang/hugs/Makefile Wed Feb 28 10:53:52 2018 (r463193) @@ -30,6 +30,12 @@ CONFIGURE_ARGS+= --with-pthreads USE_GL= glut USE_XORG= sm ice xmu xi x11 +.include + +.if ${ARCH} == i386 && ${OSVERSION} > 1200000 +CFLAGS+= -O0 +.endif + post-patch: @${REINPLACE_CMD} 's/LIBS/LIBRARIES/' ${WRKSRC}/libraries/Makefile.in @${REINPLACE_CMD} -e '/^install :: install_notes/d ; \ @@ -53,4 +59,4 @@ do-install: cd ${WRKSRC}/${dir} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET} . endfor -.include +.include