From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19579 invoked by alias); 17 Jul 2005 23:27:17 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 19570 invoked by uid 22791); 17 Jul 2005 23:27:14 -0000 Received: from mail.ut.sco.com (HELO mail.ut.sco.com) (216.250.130.2) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 17 Jul 2005 23:27:14 +0000 Received: (qmail 8562 invoked from network); 17 Jul 2005 23:27:12 -0000 Received: from mail.sco.com (216.250.130.37) by mail.ut.sco.com with SMTP; 17 Jul 2005 23:27:12 -0000 Received: from mail.sco.com (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 63B88154AA05 for ; Sun, 17 Jul 2005 17:27:07 -0600 (MDT) Received: from [127.0.0.1] (sillenius.vpn.sco.com [192.168.252.123]) by mail.sco.com (Postfix) with ESMTP id E80BB154AA04 for ; Sun, 17 Jul 2005 17:27:05 -0600 (MDT) Message-ID: <42DAE93A.3080807@sco.com> Date: Sun, 17 Jul 2005 23:27:00 -0000 From: Kean Johnston Reply-To: jkj@sco.com User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: gcc@gcc.gnu.org Subject: What's the best way of including extra files for gcc lib dir? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-07/txt/msg00749.txt.bz2 Hi All, What is the best way of including target-specific files in the version-specific gcc library directory? I need to include a file that will be referenced from LINK_SPEC as "gcc.map%s". IE, in the same place the startup files are located. So really I need to know two things: 1) How to I persuade the GCC makefile to install it, and 2) Whats the best place to put it in the source tree? Bear inmind this must be available during bootstrapping too. I suspect it may require additions to "extra_parts" in config.gcc, and then suitable rules for creating it in the t-* fragment. Is this correct? Is it acceptable for that t-* fragment to do something like: gcc.map: $(srcdir)/config/i386/gcc.map -rm -f gcc.map -cp -f $(srcdir)/config/i386/gcc.map $@ Any help / advice would be greatly appreciated. Kean