From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by sourceware.org (Postfix) with ESMTPS id 55816397A4AA for ; Thu, 7 May 2020 21:03:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 55816397A4AA Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tlinx.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=gsuite@tlinx.org Received: by mail-io1-xd33.google.com with SMTP id i19so5352282ioh.12 for ; Thu, 07 May 2020 14:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tlinx-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0cVEjeSpYSQCV0LwUD+Dd0R5pvUJrrY6szgYzYY2+fk=; b=armeMKaYJjM1JA67JuDPZH6gsPW4Cf+s4yWbls/X7b3nskelKYFLtfX0fG1M2qQaI6 VIoIKMVcAeUOJZrND4d2u4/vKLueF+qIK+DJ58Gau0xYFkbyMBjpHn04soh42L3l7Wtu 9DicZnrge8tM+itB6RDPEsDXRBe5p7gLEMHOyrBLxZCPdvMYcB6OdDzwjiZI09gz6wwa yNbNuRtdRZXPGxHlTLbV8diXCIAb8HFEdmx/GGnm50z0VO0t71cId7Cr3ZZNnXZkeu+3 e4VhG4XSvlUqQKcLEoinnlKb5AEO7W4pKpemhSK9pRTaoqrAeagHUr2Yu57Hyqf6UZlE cxnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0cVEjeSpYSQCV0LwUD+Dd0R5pvUJrrY6szgYzYY2+fk=; b=IiTkvkA0YeMSDawxvbEUixKJwL2BaeK3dLniu9IUHcOw87X00epJqBIgPuc23VB9nh yarRJ403BKw1QTQDg9osUqnCM27zhrVXcRBf9shT/icmXEo7E7GFzJDxuUQhtLFGpQwv zn6I0yw6CUqCezt+Pd5BsZ+WOkOFeqw33M89LvsTl6g7hp/Kg1y/AGh0EMwfanL2cRSJ 8p80b2iMsiczwIZvYxlqrTZF3BE7mMR+6881bNEJlt8Kk579wW94zBFEbJvTAb+sPrLs OUFwqRsi+Rgb0Am1hM0JrnvYdCUOrRHI3bfQij+EJaKK3QUpt2nH9O/D9R7o/01TG0/V RX8Q== X-Gm-Message-State: AGi0PuYtMQsxQPJNOHqJSGEa6gEG4mm78U9nmiEvLnHr6nzx7pNFJiC9 YkIWFBLX+5hjbOX+30xH8QiIP5OiBH0KFdw9hmSoKw== X-Google-Smtp-Source: APiQypJ02cg7WK1lbCXER4NOtwrc+KxmlmJZqLC/q/BFxWp1gnmNdsywTrnnVzea/h3EIqdz/mqagwCDeAtDC04MQRg= X-Received: by 2002:a5e:9504:: with SMTP id r4mr15521182ioj.2.1588885420742; Thu, 07 May 2020 14:03:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: L A Walsh Date: Thu, 7 May 2020 14:03:07 -0700 Message-ID: Subject: Re: Building a compiler that honors symbolic links. To: xaxazak xak Cc: gcc-help@gcc.gnu.org X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2020 21:03:42 -0000 Try mounting your target onto a "make" directory using the bind feature in mount. On Thu, May 7, 2020 at 1:44 AM xaxazak xak via Gcc-help < gcc-help@gcc.gnu.org> wrote: > When I manually build GCC (via SVN trunk) or LLVM (via GIT trunk) I > use a symbolic link (/make/) to my development folder as part of the > destination path. > > Both GCC and LLVM extract the =E2=80=9Cphysical=E2=80=9D target location = of this > symlink, so their default include paths etc use the physical location, > which starts with (/media///...) instead of just > (/make/...). > > This is annoying for a few reasons: > > 1. I=E2=80=99m capturing the header information (via -H), and I want to a= void > having and included in this list. > 2. can change. > > I can choose to not use the default include paths (eg -nostdinc++ > etc), and just explicitly set them when I invoke clang, but that makes > build setup a lot more complex. > > Is there any way I can build GCC (and LLVM / clang if you know) so > that it remembers my symlinks instead of expanding them? > > > (NOTE: Also asked for LLVM, here: > https://llvm.discourse.group/t/maintaining-symlinks-when-installing/955) > > > Thanks, > Simon. >