This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: RFA: allow default .db for libgcj
Ranjit Mathew writes:
> Bryce McKinlay wrote:
> >
> > I think it would be better to define a default here. Although the .db
> > stuff is still experimental, it improves ease-of-use to not have to
> > worry about the location of this file. This location will need to be
> > version-specific, however, since the libraries may also be version
> > specific, and the db format could change in future releases.
> >
> > The question remains of where this file should actually go, however.
> > Suggestions:
> >
> > <install prefix>/share/gcj/<version>/classmap.db ?
> > /var/cache/gcj/<version>/classmap.db ?
>
> In a normal multi-user environment, this is very
> likely to be un-writable by ordinary users.
Yes. That's the idea, and it needs to be like this for very good
security reasons.
> Would it make sense for --enable-libgcj-database
> to be able to take in something like
> "~/.gcj/classmap.db"? Here *gij* (and not the shell)
> interprets the "~" to be the current user's $HOME.
I think that this should be set in the environment, if at all.
Andrew.