From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by sourceware.org (Postfix) with ESMTPS id 865E8386F44C for ; Thu, 7 May 2020 08:44:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 865E8386F44C Received: by mail-lf1-x129.google.com with SMTP id x73so3769110lfa.2 for ; Thu, 07 May 2020 01:44:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=RcNL7iTxnst5qRoKLF/trncwCvXnW33rZESHCrSpSdU=; b=ttLnGJjWag5wO5R2+nqWnk217FeJCzSOYYmXrvivF4dy/0CeptUvb/J9fW7kclXaKf LHqDRFhg0kC01a0J0unXKa8u/nBTCEZMOLUGdfsAh1pCCKjboVDcN1ZgFSEFjYOoK4lc rMa9vtIOdX4CoMAoDQNQyQrD6bPVJQCMxaxoy93thl1KxKORf/uYbS0f1RYKH81cnKtU bTc0WfLga19kVMivNeuLF7sHSjwVw2FGAhLCAG8tujeaGwTC5zMDjCoSyaSqa9jONg0d gH5mXL1TM4TIm+rEhpV6+n8WJnWzF0/Rh5/toCQr//S4txezOEWjsmnKBr+S796l05Ma coWQ== X-Gm-Message-State: AGi0Pua+sIhKaRmxDmQw8LhwcQr0/QmZgXZWY7SqcQT7c+jptvx2Qmmz c4O7LAx4BCaKJ48RBSqgaDhzqTMFF/quM52i6aeYsw== X-Google-Smtp-Source: APiQypJw/9kD92AXpFYs3e3h62TOLLGzFM3cIGC+/PBdO9tOlRQ+l5oioWV/pYmYwH4oIiFNhlyUM7XiecdoyZ5mvkQ= X-Received: by 2002:ac2:420c:: with SMTP id y12mr8087369lfh.26.1588841078109; Thu, 07 May 2020 01:44:38 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:4cc6:0:0:0:0:0 with HTTP; Thu, 7 May 2020 01:44:37 -0700 (PDT) From: xaxazak xak Date: Thu, 7 May 2020 20:44:37 +1200 Message-ID: Subject: Building a compiler that honors symbolic links. To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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 08:44:42 -0000 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 avo= id 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.