Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Apr 2003 04:24:31 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        Adam <blueeskimo@gmx.net>
Cc:        freebsd-ports@FreeBSD.org
Subject:   Re: Compiling ports with debug symbols
Message-ID:  <20030406112431.GA51567@rot13.obsecurity.org>
In-Reply-To: <1049627815.385.13.camel@jake>
References:  <1049612828.385.1.camel@jake> <20030406071450.GA24808@krion> <1049613531.385.6.camel@jake> <20030406072207.GA24955@krion> <1049627815.385.13.camel@jake>

next in thread | previous in thread | raw e-mail | index | archive | help

--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Apr 06, 2003 at 07:16:55AM -0400, Adam wrote:
> On Sun, 2003-04-06 at 03:22, Kirill Ponomarew wrote:
> > I think you should try:
> >=20
> > make CFLAGS=3D'-g' STRIP=3D' ' install clean
> >=20
> > Kirill
> >=20
>=20
> (/usr/ports/net/licq) - (root@ttyp9.jake) - (07:10:05)
> -# make CFLAGS=3D'-g' STRIP=3D' ' install clean
> ...
>=20
> >From there it went on to compile just fine, but -g was NOT added to the
> compiler flags.
>=20
> To verify that no debug symbols were added, I ran licq from within gdb:

This doesn't necessarily lead to the above conclusion.  Examining the
build output will usually show the compiler flags used (except some
ports use a build script that calls cc internally and doesn't display
the command line).  Many ports do not respect the STRIP variable (most
of them?), and there is no general way to avoid stripping binaries on
installation.

What I usually do is build the binary (e.g. "make all") and then
install it manually by copying it into place by hand.

Kris

--vtzGhvizbBRQ85DL
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+kA5vWry0BWjoQKURAocQAKC8FE4sg/u2IfnXFB9aYDfgjPkNTwCffJqb
/3OtHvkemXS+elZdLJ2iUFc=
=j+lR
-----END PGP SIGNATURE-----

--vtzGhvizbBRQ85DL--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030406112431.GA51567>