From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18336 invoked by alias); 19 May 2009 06:29:50 -0000 Received: (qmail 18324 invoked by uid 22791); 19 May 2009 06:29:49 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from qw-out-1920.google.com (HELO qw-out-1920.google.com) (74.125.92.149) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 19 May 2009 06:29:44 +0000 Received: by qw-out-1920.google.com with SMTP id 4so3430173qwk.14 for ; Mon, 18 May 2009 23:29:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.110.21 with SMTP id l21mr3198041qcp.26.1242714581985; Mon, 18 May 2009 23:29:41 -0700 (PDT) Date: Tue, 19 May 2009 12:23:00 -0000 Message-ID: Subject: [lto] LDFLAGS get lost in stage2 From: Eric Fisher To: gcc@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-05/txt/msg00476.txt.bz2 Hello, I have the libelf installed in a non-standard path, so when I build the lto branch, I set the such env variables, $ export CPPFLAGS="-I" <- Only needed if libelf is in a non-standard path $ export LDFLAGS="-L" <- Only needed if libelf is in a non-standard path But, lto-plugin is failed in stage2 with the error /usr/bin/ld: cannot find -lelf I look into the Makefile and find that LDFLAGS is set as BOOT_LDFLAGS scine stage2, so I have to set this variable also. Is it a right way that it should go? Best wishes, Eric Fisher