From owner-freebsd-current@FreeBSD.ORG Thu Dec 9 13:52:25 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76015106566B for ; Thu, 9 Dec 2010 13:52:25 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id CE89F8FC0A for ; Thu, 9 Dec 2010 13:52:24 +0000 (UTC) X-Spam-Status: No X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-2.9, required 5, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_00 -1.90) X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-ID: oB9Dq9jB030931 Received: from gkeramidas-glaptop.linux.gr ([74.125.57.36]) (authenticated bits=0) by igloo.linux.gr (8.14.3/8.14.3/Debian-9.4) with ESMTP id oB9Dq9jB030931 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 9 Dec 2010 15:52:15 +0200 From: keramida@freebsd.org (Giorgos Keramidas) To: Kostik Belousov References: <4D00CDCE.8040509@gthcfoundation.org> <20101209131502.GM33073@deviant.kiev.zoral.com.ua> Date: Thu, 09 Dec 2010 14:52:06 +0100 In-Reply-To: <20101209131502.GM33073@deviant.kiev.zoral.com.ua> (Kostik Belousov's message of "Thu, 9 Dec 2010 15:15:02 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: freebsd-current@freebsd.org, Etienne Robillard Subject: Re: shared lib issue in /usr/obj? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2010 13:52:25 -0000 --=-=-= Content-Type: text/plain On Thu, 9 Dec 2010 15:15:02 +0200, Kostik Belousov wrote: > On Thu, Dec 09, 2010 at 01:57:16PM +0100, Giorgos Keramidas wrote: >> They are installed with "make install" and when you run "make install" >> with PRECIOUSLIB defined, bsd.lib.mk adds this to SHINSTALLFLAGS: >> >> .if defined(PRECIOUSLIB) >> .if !defined(NO_FSCHG) >> SHLINSTALLFLAGS+= -fschg >> .endif >> SHLINSTALLFLAGS+= -S >> .endif >> >> The Makefiles that set PRECIOUSLIB today are: >> >> keramida@bokos:/usr/src$ grep -r 'PRECIOUSLIB.*=' * >> lib/libc/Makefile:PRECIOUSLIB= >> lib/libcrypt/Makefile:PRECIOUSLIB= >> lib/libkse/Makefile:PRECIOUSLIB= >> lib/librt/Makefile:PRECIOUSLIB= >> lib/libthr/Makefile:PRECIOUSLIB= >> keramida@bokos:/usr/src$ > > Would be nice if lib32 installation into the obj/ area somehow > eliminated the setting of schg flag. There is no reason to have schg > set on files in obj. Yes, that's a good idea. I don't have root access to an amd64 system to test this now, but I think all we need to change is: %%% $ hg diff . diff -r e52d3f3de04d Makefile.inc1 --- a/Makefile.inc1 Thu Dec 09 12:35:12 2010 +0100 +++ b/Makefile.inc1 Thu Dec 09 14:50:06 2010 +0100 @@ -318,7 +318,8 @@ LIB32WMAKEENV+= MAKEOBJDIRPREFIX=${OBJTR CXX="${CXX} ${LIB32FLAGS}" \ OBJC="${OBJC} ${LIB32FLAGS}" \ LIBDIR=/usr/lib32 \ - SHLIBDIR=/usr/lib32 + SHLIBDIR=/usr/lib32 \ + NO_FSCHG='' LIB32WMAKE= ${LIB32WMAKEENV} ${MAKE} -DNO_CPU_CFLAGS -DCOMPAT_32BIT \ -DWITHOUT_BIND -DWITHOUT_MAN -DWITHOUT_INFO \ $ %%% This should strip the -fschg option from lib32's installation commands. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk0A3wkACgkQ1g+UGjGGA7bWcQCfal3NVPjWqaPJtsT/bA4E1Pop iEgAni0CE/KnCoYC6NPnPDcVsJvhP3B7 =MYtV -----END PGP SIGNATURE----- --=-=-=--