Re: compile a port with debugging symbols?

2009-11-28 Thread Michael W. Lucas
On Thu, Nov 26, 2009 at 07:12:43PM +0200, Andrew W. Nosenko wrote:
 On Thu, Nov 26, 2009 at 18:10, Michael W. Lucas
 mwlu...@blackhelicopters.org wrote:
  Hi,
 
  Is there an approved/offical way to compile a port with debugging
  symbols?
 
  Habitually I've just run make configure and then edited Makefiles.
  But I'm sure that's not what you folks recommend users do...
 
 IIRC, the
   WITH_DEBUG=yes
 knob is what you looking for.

Hi,

WITH_DEBUG builds with -g, but strips net-mgmt/flowd upon install.
Haven't tried others.

I can run and debug the binary in the port working directory, however.

Thanks,
==ml

-- 
Michael W. Lucasmwlu...@blackhelicopters.org
http://www.MichaelWLucas.com/
Latest book:  Cisco Routers for the Desperate, 2nd Edition
http://www.CiscoRoutersForTheDesperate.com/
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: compile a port with debugging symbols?

2009-11-28 Thread Marius Nünnerich
On Sat, Nov 28, 2009 at 15:07, Michael W. Lucas
mwlu...@blackhelicopters.org wrote:
 On Thu, Nov 26, 2009 at 07:12:43PM +0200, Andrew W. Nosenko wrote:
 On Thu, Nov 26, 2009 at 18:10, Michael W. Lucas
 mwlu...@blackhelicopters.org wrote:
  Hi,
 
  Is there an approved/offical way to compile a port with debugging
  symbols?
 
  Habitually I've just run make configure and then edited Makefiles.
  But I'm sure that's not what you folks recommend users do...

 IIRC, the
   WITH_DEBUG=yes
 knob is what you looking for.

 Hi,

 WITH_DEBUG builds with -g, but strips net-mgmt/flowd upon install.
 Haven't tried others.

 I can run and debug the binary in the port working directory, however.


# make WITH_DEBUG=yes STRIP= install
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: compile a port with debugging symbols?

2009-11-26 Thread Rene Ladan
2009/11/26 Michael W. Lucas mwlu...@blackhelicopters.org:
 Hi,

 Is there an approved/offical way to compile a port with debugging
 symbols?

 Habitually I've just run make configure and then edited Makefiles.
 But I'm sure that's not what you folks recommend users do...

Just adding -g to CFLAGS in /etc/make.conf should work...

Regards,
Rene
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: compile a port with debugging symbols?

2009-11-26 Thread Warren Block

On Thu, 26 Nov 2009, Michael W. Lucas wrote:


Is there an approved/offical way to compile a port with debugging
symbols?

Habitually I've just run make configure and then edited Makefiles.
But I'm sure that's not what you folks recommend users do...


make -DWITH_DEBUG, according to bsd.ports.mk.

-Warren Block * Rapid City, South Dakota USA
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: compile a port with debugging symbols?

2009-11-26 Thread Robert Noland
On Thu, 2009-11-26 at 18:01 +0100, Rene Ladan wrote:
 2009/11/26 Michael W. Lucas mwlu...@blackhelicopters.org:
  Hi,
 
  Is there an approved/offical way to compile a port with debugging
  symbols?
 
  Habitually I've just run make configure and then edited Makefiles.
  But I'm sure that's not what you folks recommend users do...
 
 Just adding -g to CFLAGS in /etc/make.conf should work...

A lot of times, the binaries will still be stripped.  Many ports work
correctly if you define WITH_DEBUG=yes however.

robert.

 Regards,
 Rene
 ___
 freebsd-ports@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports
 To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
-- 
Robert Noland rnol...@freebsd.org
FreeBSD

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: compile a port with debugging symbols?

2009-11-26 Thread Andrew W. Nosenko
On Thu, Nov 26, 2009 at 18:10, Michael W. Lucas
mwlu...@blackhelicopters.org wrote:
 Hi,

 Is there an approved/offical way to compile a port with debugging
 symbols?

 Habitually I've just run make configure and then edited Makefiles.
 But I'm sure that's not what you folks recommend users do...

IIRC, the
  WITH_DEBUG=yes
knob is what you looking for.

-- 
Andrew W. Nosenko andrew.w.nose...@gmail.com
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org