From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98661 invoked by alias); 19 Jun 2019 08:13:37 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 98569 invoked by uid 89); 19 Jun 2019 08:13:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=H*c:alternative, H*r:sk:mail-pf, HX-Spam-Relays-External:sk:mail-pf, HX-HELO:sk:mail-pf X-HELO: mail-pf1-f173.google.com Received: from mail-pf1-f173.google.com (HELO mail-pf1-f173.google.com) (209.85.210.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Jun 2019 08:13:35 +0000 Received: by mail-pf1-f173.google.com with SMTP id 81so9254320pfy.13 for ; Wed, 19 Jun 2019 01:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=MCvG4EZIuqTUPEwcvfHDeVGdrvWGQ0R1zbibj3YaRZU=; b=TtzNxlT3RLtHoZKCYgkg29UlCdvWU9/iGRleSyFgQF4NvqzN8IQd3uyAbjpijGTIoQ hF5c+g1XHZvP05Yi7qPT+CAy3iRcqviemcxwLptgIpxPRrzSaPpRRbMXZA5sPYvQiX6g 812I9byAMtBq7Ef9w1sImGcLsEwEg5QxBpmQ44cxqHO6F97RCAZo2uC+RGo6biK8hY22 aWoWs+Oj622FAj7dnsLGWzdXfejnoe0qCRjvZWT3D/sQK/gJZIXRCLSl1JWkhGmo5sFE j3sX2E4VjesdTye+38WTz747uQqOj4quftYgiduzTQnODs9mG2JxWjqwRoy+P6Q0kBSo 3RGA== MIME-Version: 1.0 From: Daniele Testa Date: Wed, 19 Jun 2019 08:13:00 -0000 Message-ID: Subject: How do I define default search paths for gcc and cc1? To: crossgcc@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-06/txt/msg00001.txt.bz2 Hey! I am doing a cross-native/canadian toolchain build to later move to my own Linux distribution: build = x86_64-pc-linux-gnu host = arm-linux-gnueabihf target = arm-linux-gnueabihf The problem I am having is that the resulting "gcc" and "cc1" does not have default search paths that I require. As an example, the "gcc" is not looking for "cc1" at the location that I want and "cc1" does not even look in the standard places, such as "/usr/include". As I will move the final toolchain to another system with other paths, I need a way to change these default search paths. As it stands now, the toolchain is not easily movable. I know that I can use "gcc -I..." when compiling, but I prefer that "gcc" and "cc1" have sensible default search paths and not something like "~/x-tools/...". Any help would be appreciated. Thanks! Regards, Daniele