Re: Build with debug symbols
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 White Hat said the following on 20.05.2007 17:41: > If I build a port with debugging information; i.e. > 'make -g', is that debugging information stripped out > when the program is installed? If so, is there anyway > to prevent this from happening? > > I have been attempting to build 'claws-mail' with > debugging information; however, when I run the program > under 'gdb' that information does not appear to be > present. I heard that there was a 'STRIP' flag I could > set; however, I cannot find any definitive information > regarding it. > > Look at /usr/ports/Mk/bsd.port.mk in this section: .if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) STRIP= #none STRIP_CMD= ${TRUE} DEBUG_FLAGS?= -g CFLAGS:=${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} .endif As you can see, if WITH_DEBUG is defined, then $STRIP will be a empty, DEBUG_FLAGS and CFLAGS changes too. - -- Regards, Bogdan - --- KeyID: 0x84B8D5142569D30B Fingerprint: 78FC 5C40 07CC D331 148E CC79 84B8 D514 2569 D30B Keyserver: keyserver.pgp.com - --- -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.3 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGYCTmhLjVFCVp0wsRCtOiAJ9dBEzm2hpPusake0BB/2LHTbjXlACg38OC sk3fD4lK+mhzNP7XH/BYdX8= =/LwZ -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Build with debug symbols
On Mon, 21 May 2007, Gerard wrote: On Monday May 21, 2007 at 04:12:15 (PM) Giorgos Keramidas wrote: If I build a port with debugging information; i.e. 'make -g', is that debugging information stripped out when the program is installed? If so, is there anyway to prevent this from happening? I have been attempting to build 'claws-mail' with debugging information; however, when I run the program under 'gdb' that information does not appear to be present. I heard that there was a 'STRIP' flag I could set; however, I cannot find any definitive information regarding it. # env DEBUG_FLAGS='-g' CFLAGS='' ... The DEBUG_FLAGS option turns off symbol stripping. Would that also work if "DEBUG_FLAGS='g'" were placed in the /etc/make.conf file or does it have to be placed in the environment prior to building the port. I assume that the '-g' has to still be placed on the 'make' command when doing the actual build. -- Gerard There's another flag in make.conf or pkgtools.conf that controls whether or not debug symbols are stripped post install, but I don't remember it right offhand. It should be in the relevant file's manpage though.. -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Build with debug symbols
On Monday May 21, 2007 at 04:12:15 (PM) Giorgos Keramidas wrote: > > If I build a port with debugging information; i.e. > > 'make -g', is that debugging information stripped out > > when the program is installed? If so, is there anyway > > to prevent this from happening? > > > > I have been attempting to build 'claws-mail' with > > debugging information; however, when I run the program > > under 'gdb' that information does not appear to be > > present. I heard that there was a 'STRIP' flag I could > > set; however, I cannot find any definitive information > > regarding it. > > # env DEBUG_FLAGS='-g' CFLAGS='' ... > > The DEBUG_FLAGS option turns off symbol stripping. Would that also work if "DEBUG_FLAGS='g'" were placed in the /etc/make.conf file or does it have to be placed in the environment prior to building the port. I assume that the '-g' has to still be placed on the 'make' command when doing the actual build. -- Gerard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Build with debug symbols
On 2007-05-20 07:41, White Hat <[EMAIL PROTECTED]> wrote: > If I build a port with debugging information; i.e. > 'make -g', is that debugging information stripped out > when the program is installed? If so, is there anyway > to prevent this from happening? > > I have been attempting to build 'claws-mail' with > debugging information; however, when I run the program > under 'gdb' that information does not appear to be > present. I heard that there was a 'STRIP' flag I could > set; however, I cannot find any definitive information > regarding it. # env DEBUG_FLAGS='-g' CFLAGS='' ... The DEBUG_FLAGS option turns off symbol stripping. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Build with debug symbols
If I build a port with debugging information; i.e. 'make -g', is that debugging information stripped out when the program is installed? If so, is there anyway to prevent this from happening? I have been attempting to build 'claws-mail' with debugging information; however, when I run the program under 'gdb' that information does not appear to be present. I heard that there was a 'STRIP' flag I could set; however, I cannot find any definitive information regarding it. -- White Hat [EMAIL PROTECTED] Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"