Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Nov 2014 17:24:40 -0500
From:      Alexander Kabaev <kabaev@gmail.com>
To:        Andriy Gapon <avg@FreeBSD.org>
Cc:        svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, Mark Johnston <markj@FreeBSD.org>, src-committers@FreeBSD.org
Subject:   Re: svn commit: r274200 - head/share/mk
Message-ID:  <20141108172440.12418020@kan>
In-Reply-To: <545E7882.90209@FreeBSD.org>
References:  <201411062246.sA6MkeLN018716@svn.freebsd.org> <20141108120000.3f16feab@kan> <545E7882.90209@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/LTlB.owL03b7LY1S/P6I9UB
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Sat, 08 Nov 2014 22:09:38 +0200
Andriy Gapon <avg@FreeBSD.org> wrote:

> On 08/11/2014 19:00, Alexander Kabaev wrote:
> > On Thu, 6 Nov 2014 22:46:40 +0000 (UTC) Mark Johnston
> > <markj@FreeBSD.org> wrote:
> >=20
> >> Author: markj Date: Thu Nov  6 22:46:40 2014 New Revision: 274200
> >> URL: https://svnweb.freebsd.org/changeset/base/274200
> >>=20
> >> Log: Automatically build with debug symbols when building with
> >> WITH_CTF. Otherwise there's nothing for ctfconvert to do, and it
> >> ends up emitting an error for each object file. Also remove some
> >> redundant checks from bsd.prog.mk and bsd.lib.mk.
> > <SKIP>
> >>=20
> >> -.if ${MK_CTF} !=3D "no" && ${DEBUG_FLAGS:M-g} !=3D "" +.if
> >> ${MK_CTF} !=3D "no" CTFFLAGS+=3D -g .endif .else
> >=20
> > I have a question about this and another similar change. Does it
> > have the effect of always leaving binaries with debug symbols in id
> > WITH_CTF is in effect and do we now rely solely on install
> > stripping binaries at later stage to get rid of the debug symbols?
> > IMHO, we should only pass -g to ctfconvert if WITH_CTF is set _and_
> > user requested debug symbols explicitly. Your change seems to be
> > breaking that.
>=20
> Hmm, I do not follow your logic here, sorry.
> So, you say that stripping should be ctfconvert's job? Why?
>=20
> --=20
> Andriy Gapon

Because when building stuff with unwanted debug symbols one should make
sure they are really gone and the patch basically undoes than promise.
Whose job is it to strip .o's that end up in as the part of the .a
archives, for example? DEBUG_FLAGS are there for users to be able to
specify, khm, own debug flags and stuffing values in there
automatically is just wrong. Also, there are these bits in our .mk
files which I did not remember were there:

.if !defined(DEBUG_FLAGS)
STRIP?=3D -s
.endif

So, when present, DEBUG_FLAGS do prevent the stripping of binaries
completely, making the patch as is even more wrong that I thought
originally.

--=20
Alexander Kabaev

--Sig_/LTlB.owL03b7LY1S/P6I9UB
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iD8DBQFUXpgyQ6z1jMm+XZYRAiU8AJ0e3GLmrB7W9eZM7aMyIxJfzfL/zgCeO1b9
6A3IN9jzQoqlyMMmB5FWeuo=
=JcDF
-----END PGP SIGNATURE-----

--Sig_/LTlB.owL03b7LY1S/P6I9UB--



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