This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with $prefix in gcc.c
- To: "Mark E." <snowball3 at bigfoot dot com>
- Subject: Re: Problem with $prefix in gcc.c
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 18 May 2000 18:20:32 -0600
- cc: gcc-bugs at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <3913592B.29047.7CE61@localhost>you write:
> Hi folks,
> In the effort to get GCC to work with DJGPP without need to maintain
> patches, I found that setting STANDARD_EXEC_PREFIX to "$DJDIR/lib/gcc-lib/"
> doesn't work very well. (DJDIR is an environment variable that
> contains the directory where a developer has installed DJGPP.) This
> problem is made worse in the gcc.c in gcc 2.96 which now uses
> 'make_relative_prefix' to set GCC_EXEC_PREFIX. This does
> not work when using prefixes starting with '$' . I'm not sure of the best
> solution, but here is one that I'd like to float:
I do not think we want to use your approach on systems where '$' is a valid
character for a file/directory name (like most/all unix systems).
I think you might be best off just expanding $DJDIR when you set
STANDARD_EXEC_PREFIX.
jeff