From owner-freebsd-mips@FreeBSD.ORG Fri Nov 21 14:03:59 2014 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 22EAA671 for ; Fri, 21 Nov 2014 14:03:59 +0000 (UTC) Received: from isis.morrow.me.uk (isis.morrow.me.uk [204.109.63.142]) by mx1.freebsd.org (Postfix) with ESMTP id EF0FD3E4 for ; Fri, 21 Nov 2014 14:03:58 +0000 (UTC) Received: from anubis.morrow.me.uk (unknown [93.89.81.46]) (Authenticated sender: mauzo) by isis.morrow.me.uk (Postfix) with ESMTPSA id 24AB745087; Fri, 21 Nov 2014 14:03:55 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.8.3 isis.morrow.me.uk 24AB745087 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=morrow.me.uk; s=dkim201101; t=1416578637; bh=hQVgSJNSi91R24+H094AUD1scH1HibhmXQwMBlFobFc=; h=Date:From:To:Subject:References:In-Reply-To; b=RtynG/QkgGi6Vd38AX0ECumxdGbmvL0xETy5BdGYaPBTBi6z1APSkyw72Jz3WejSP ET1fYXdjvXtg/KdK2ho+0+wFA/NAFBvdPRuOAHrKoxeWQLDYgpFRu9xvT1HzzgPg3m RIM9xtjt8aq6rOIJ3HUM778Y/URrfnEX+nGHVdCU= X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.98.4 at isis.morrow.me.uk Received: by anubis.morrow.me.uk (Postfix, from userid 5001) id 3E05116822; Fri, 21 Nov 2014 14:03:52 +0000 (GMT) Date: Fri, 21 Nov 2014 14:03:52 +0000 From: Ben Morrow To: imp@bsdimp.com, freebsd-mips@freebsd.org Subject: Re: is pkgng=no valid? Message-ID: <20141121140350.GA21767@anubis.morrow.me.uk> References: <20141118200226.GP44537@home.opsec.eu> <20141118212630.GQ44537@home.opsec.eu> <546BBB26.5050603@gmail.com> <546BC7AE.3080705@gmail.com> <20141119004236.GA95694@anubis.morrow.me.uk> <20141121034128.GA18538@anubis.morrow.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Newsgroups: gmane.os.freebsd.devel.mips User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2014 14:03:59 -0000 Quoth Warner Losh : > On Nov 20, 2014, at 8:41 PM, Ben Morrow wrote: > > Quoth sbruno@freebsd.org: > >> > >> I'm currently setting WITH_DEBUG=y in make.conf for use with poudriere + > >> qemu-user. Maybe this is easier? > > > > It's easier, but you end up with unstripped and unoptimised binaries, > > which seems like a Bad Plan to me on a machine as small as the ERL. Not > > stripping static libraries doesn't make any difference to any code that > > will actually run, since any binaries they are linked from will be > > stripped again before being installed. > > STRIP= might be an option (STRIP=/bin/true isn't right since it is flags > to use). > > But I wonder why we're even doing strip on a .a anyway. That part doesn't > make sense to me at all. Usually you just do that on shared libraries or > binaries. No, I agree. I suppose it saves a little disk space? > You might also consider STRIPCMD=/tmp/strip-me which looks like: > > #!/bin/sh > > case $1 > *.a) /bin/true > *) strip $* > esac I started there; strip's command-line parsing is more complicated than I cared to reproduce in shell. > Or replacing the real strip with the above and changing "strip" to > strep.real which is > the real strip binary. > > I'm not 100% sure that install actually honors this or not, but it would > be one way. Looking > at bsd.lib.mk, though, shows we only call install with ${STRIP} for > shared libraries. libtool strips static libs if it thinks it's using GNU strip, and it passes the necessary arguments to only strip debug symbols and not those needed for further linking. Ben