public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Building a compiler that honors symbolic links.
@ 2020-05-07  8:44 xaxazak xak
  2020-05-07 10:43 ` Jonathan Wakely
  2020-05-07 21:03 ` L A Walsh
  0 siblings, 2 replies; 4+ messages in thread
From: xaxazak xak @ 2020-05-07  8:44 UTC (permalink / raw)
  To: gcc-help

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 “physical” target location of this
symlink, so their default include paths etc use the physical location,
which starts with (/media/<HOME>/<HDD>/...) instead of just
(/make/...).

This is annoying for a few reasons:

1. I’m capturing the header information (via -H), and I want to avoid
having <HOME> and <HDD> included in this list.
2. <HDD> 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-07 21:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-07  8:44 Building a compiler that honors symbolic links xaxazak xak
2020-05-07 10:43 ` Jonathan Wakely
2020-05-07 19:37   ` xaxazak xak
2020-05-07 21:03 ` L A Walsh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).