This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] SYSROOT subdir support
On Tue, May 06, 2003 at 03:07:26PM -0000, email@example.com wrote:
> The target_sysroot_subdir and target_sysroot_hdrs_subdir strings store the
> results of processed specs, where target_system_root is a fixed path. I
> initialize the global subdir strings to 0, and if the spec is defined, I run
> them through do_spec_2(), and assign a successful result to the global
> variable. Then I check against that global variable wherever I may need to
> use it:
> if (target_sysroot_subdir)
> /* Do stuff with target_sysroot_subdir */
> I could set it up in a function with static vars instead, if you think that is
> better, or is there another way to do this that I am unaware of? I went with
> this because it was a small set of changes.
Hmm, I'm out of my league here. Nevermind.
Matt Kraai <firstname.lastname@example.org>
Debian GNU/Linux Peon