svn commit: r463193 - head/lang/hugs
Tobias C. Berner
tcberner at FreeBSD.org
Wed Feb 28 10:53:53 UTC 2018
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 <bsd.port.pre.mk>
+
+.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 <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-head
mailing list