ports/152043: WITH_DEBUG doesn't work when compiling Firefox
Anonymous
swell.k at gmail.com
Mon Nov 8 15:40:11 UTC 2010
The following reply was made to PR ports/152043; it has been noted by GNATS.
From: Anonymous <swell.k at gmail.com>
To: kenorb <kenorb at gmail.com>
Cc: bug-followup at FreeBSD.org
Subject: Re: ports/152043: WITH_DEBUG doesn't work when compiling Firefox
Date: Mon, 08 Nov 2010 18:37:59 +0300
Does below patch fixes your issue? It should also fix stripping when
STRIP is defined empty or undefined, i.e. when only DEBUG_FLAGS defined.
--- a.diff begins here ---
Index: Mk/bsd.gecko.mk
===================================================================
RCS file: /a/.cvsup/ports/Mk/bsd.gecko.mk,v
retrieving revision 1.22
diff -u -p -r1.22 bsd.gecko.mk
--- Mk/bsd.gecko.mk 29 Aug 2010 15:16:20 -0000 1.22
+++ Mk/bsd.gecko.mk 8 Nov 2010 15:36:36 -0000
@@ -418,14 +418,14 @@ MOZ_OPTIONS+= --enable-gnomevfs
MOZ_OPTIONS+= --disable-gnomevfs
.endif
+.if !defined(STRIP) || ${STRIP} == ""
+MOZ_OPTIONS+= --disable-strip --disable-install-strip
+.endif
+
.if defined(WITH_DEBUG)
-MOZ_OPTIONS+= --enable-debug \
- --disable-strip
-WITH_LOGGING= yes
+MOZ_OPTIONS+= --enable-debug
.else
-MOZ_OPTIONS+= --disable-debug \
- --enable-optimize=${WITH_OPTIMIZE} \
- --enable-strip
+MOZ_OPTIONS+= --disable-debug --enable-optimize=${WITH_OPTIMIZE}
.endif
.if defined(WITH_JAVA) && defined(_WITH_JAVA)
--- a.diff ends here ---
More information about the freebsd-ports-bugs
mailing list