From owner-freebsd-ports@FreeBSD.ORG Sun Apr 6 04:24:32 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB69F37B40C for ; Sun, 6 Apr 2003 04:24:32 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-63-207-60-150.dsl.lsan03.pacbell.net [63.207.60.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id E155043FA3 for ; Sun, 6 Apr 2003 04:24:31 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 8C4BE66D16; Sun, 6 Apr 2003 04:24:31 -0700 (PDT) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 6B2245B8; Sun, 6 Apr 2003 04:24:31 -0700 (PDT) Date: Sun, 6 Apr 2003 04:24:31 -0700 From: Kris Kennaway To: Adam Message-ID: <20030406112431.GA51567@rot13.obsecurity.org> References: <1049612828.385.1.camel@jake> <20030406071450.GA24808@krion> <1049613531.385.6.camel@jake> <20030406072207.GA24955@krion> <1049627815.385.13.camel@jake> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: <1049627815.385.13.camel@jake> User-Agent: Mutt/1.4i cc: Kirill Ponomarew cc: freebsd-ports@FreeBSD.org Subject: Re: Compiling ports with debug symbols X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Apr 2003 11:24:33 -0000 --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--