From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 11:44:42 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 81A5216A402 for ; Mon, 14 May 2007 11:44:42 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 3C70B13C4B8 for ; Mon, 14 May 2007 11:44:42 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 5FC1020A7; Mon, 14 May 2007 13:44:38 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id DDB222088; Mon, 14 May 2007 13:44:37 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id B526E5092; Mon, 14 May 2007 13:44:37 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: Alexander Leidinger References: <200705102105.27271.blackdragon@highveldmail.co.za> <17987.52037.112351.872442@bhuda.mired.org> <20070511015156.GA77895@xor.obsecurity.org> <86zm4b3h7h.fsf@dwp.des.no> <20070511082657.GA24652@xor.obsecurity.org> <86sla33gkm.fsf@dwp.des.no> <20070511161200.w7tzoc5mkg8og44c@webmail.leidinger.net> <86lkfru4ya.fsf@dwp.des.no> <20070514131954.sqxxrk6qi8o8gwck@webmail.leidinger.net> Date: Mon, 14 May 2007 13:44:37 +0200 In-Reply-To: <20070514131954.sqxxrk6qi8o8gwck@webmail.leidinger.net> (Alexander Leidinger's message of "Mon\, 14 May 2007 13\:19\:54 +0200") Message-ID: <868xbrtysa.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Mike Meyer , Ivan Voras , Kris Kennaway Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 11:44:42 -0000 Alexander Leidinger writes: > Isn't this a property which can be set at build time? I mean: isn't > there a $OSNAME case where this can be set for a specific OS? So it > boil down to just set those two variables accordingly in the FreeBSD > case and to send a patch to the libtool maintainers. For Linux this > isn't doable, as there are many Linux distros out there, but for > FreeBSD we can do this. But this should be tested on pointyhat first, > I think. I'm not sure I understand your question, but libtool sets the rpath if 1) an .la file is present and 2) hardcode_into_libs is defined. The latter happens at the configure stage, the shell code that selects the default value is in libtool.m4: --- libtool.m4.orig Sun Dec 18 22:53:17 2005 +++ libtool.m4 Mon May 14 13:43:46 2007 @@ -1442,7 +1442,7 @@ ;; freebsd*) # from 4.6 on shlibpath_overrides_runpath=3Dyes - hardcode_into_libs=3Dyes + hardcode_into_libs=3Dno ;; esac ;; I've chosen not to change the default for versions older than 4.6. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no