Date: Wed, 13 Dec 2006 12:22:48 +0100 (CET) From: Simun Mikecin <numisemis@yahoo.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/106665: lang/see-devel: disable assertions Message-ID: <20061213112248.53B2526D04A@mail.logos.hr> Resent-Message-ID: <200612131130.kBDBUCTZ006519@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061213112248.53B2526D04A>