ports/152043: WITH_DEBUG doesn't work when compiling Firefox
kenorb
kenorb at gmail.com
Mon Nov 8 10:10:10 UTC 2010
>Number: 152043
>Category: ports
>Synopsis: WITH_DEBUG doesn't work when compiling Firefox
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Nov 08 10:10:10 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: kenorb
>Release: FreeBSD 8.1-STABLE
>Organization:
>Environment:
FreeBSD kenorb 8.1-STABLE FreeBSD 8.1-STABLE #3: Wed Nov 3 14:36:47 GMT 2010 root at kenorb:/usr/obj/usr/src/sys/BRO amd64
>Description:
I want to compile Firefox with debug symbols.
Makefile doesn't contain special WITH_DEBUG variable.
Here is some instruction:
http://developer.mozilla.org/en/Building_Firefox_with_Debug_Symbols
But anyway ports Makefile should contain WITH_DEBUG to strict to ports standards.
>How-To-Repeat:
cd /usr/ports/www/firefox
make WITH_DEBUG=1
>Fix:
Workaround:
setenv MOZ_DEBUG_SYMBOLS 1 || export MOZ_DEBUG_SYMBOLS=1
setenv CFLAGS "-gdwarf-2" || export CFLAGS="-gdwarf-2"
setenv CXXFLAGS "-gdwarf-2" || export CXXFLAGS="-gdwarf-2"
cd /usr/ports/www/firefox && make
cd `make -V WRKSRC`/browser/app
setenv LD_LIBRARY_PATH $PWD || export LD_LIBRARY_PATH=$PWD
gdb ./firefox-bin
Fix in Makefile?
.if defined(WITH_DEBUG)
WITH_LOGGING= yes
CONFIGURE_ENV+= WITH_DEBUG=yes
CONFIGURE_ENV+= MOZ_DEBUG_SYMBOLS=1
CONFIGURE_ENV+= CFLAGS="-gdwarf-2"
CONFIGURE_ENV+= CXXFLAGS="-gdwarf-2"
.endif # defined(WITH_DEBUG)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list