ports/106665: lang/see-devel: disable assertions
Simun Mikecin
numisemis at yahoo.com
Wed Dec 13 11:30:14 UTC 2006
>Number: 106665
>Category: ports
>Synopsis: lang/see-devel: disable assertions
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Wed Dec 13 11:30:12 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Simun Mikecin
>Release: FreeBSD 5.2.1-RELEASE-p9 i386
>Organization:
>Environment:
System: FreeBSD mail.logos.hr 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #1: Mon Jul 26 14:07:00 CEST 2004 root at mail.logos.hr:/usr/obj/usr/src.5.2.1-R/sys/MAIL i386
>Description:
Not compiling with -DNDEBUG leaves many assertions enabled, significantly
reducing code speed. This patch adds new option SEE_DEBUG to control wether
assertions should be enabled or not. It also changes default to disable
assertions.
>How-To-Repeat:
>Fix:
diff -urN see-devel.orig/Makefile see-devel/Makefile
--- see-devel.orig/Makefile Wed Dec 13 12:05:54 2006
+++ see-devel/Makefile Wed Dec 13 12:17:56 2006
@@ -7,7 +7,7 @@
PORTNAME= see
PORTVERSION= 2.0.1131
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= lang devel
MASTER_SITES= http://www.powerband.net.au/~david.leonard/ \
http://freshmeat.net/redir/see/45974/url_tgz/
@@ -17,7 +17,8 @@
COMMENT= Simple ECMAScript Engine (SEE)
OPTIONS= GC "Use Boehm-Weiser garbage collection package" on \
- OPTIMIZED_CFLAGS "Enable some additional optimizations" off
+ OPTIMIZED_CFLAGS "Enable some additional optimizations" off \
+ SEE_DEBUG "Internal SEE library debugging" off
CONFLICTS= see-[0-9]*
@@ -36,6 +37,10 @@
.if ${OSVERSION} < 500000
BROKEN= does not build on 4.x
+.endif
+
+.if !defined(WITH_SEE_DEBUG)
+CFLAGS+= -DNDEBUG
.endif
.if defined(WITH_OPTIMIZED_CFLAGS)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list