From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15782 invoked by alias); 15 May 2005 16:52:15 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 15748 invoked from network); 15 May 2005 16:52:12 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 15 May 2005 16:52:12 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j4FGqCkU013855 for ; Sun, 15 May 2005 12:52:12 -0400 Received: from pobox.surrey.redhat.com (pobox.surrey.redhat.com [172.16.10.17]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j4FGqBO24252; Sun, 15 May 2005 12:52:11 -0400 Received: from [172.31.0.98] (vpnuser2.surrey.redhat.com [172.16.9.2]) by pobox.surrey.redhat.com (8.12.8/8.12.8) with ESMTP id j4FGqAMO002568; Sun, 15 May 2005 17:52:10 +0100 Message-ID: <42877E5C.4070103@redhat.com> Date: Sun, 15 May 2005 17:00:00 -0000 From: Nick Clifton User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) MIME-Version: 1.0 To: Marty Leisner CC: binutils@sources.redhat.com Subject: Re: modifying ld options in the enviroment References: <200505142045.j4EKjkgG002877@dell.home> In-Reply-To: <200505142045.j4EKjkgG002877@dell.home> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-05/txt/msg00489.txt.bz2 Hi Marty, > I inserted a environemnt variable > LD_ENV_OPTIONS > which allows you to inject options into ld > This is wrt 2.16 -- I've had this for a few years...I've found it > very useful...I'm thinking of duplicating something like this for gcc... The big problem with this approach, and the reason why it has been rejected before (both for ld and gcc) is that it makes reproducing a bug much harder. Unless you remember that the environment variable has been set, (assuming that you know about it, quite often this kind of thing is done for you in a system wide initialisation script), then you might not report it when submitting a bug report or take it into consideration when investigating a bug. Using wrapper scripts also has the same problem. By far the best way is to spend the effort to create a good build environment where extra linker command line switches can be set on the build command line. Cheers Nick