Patch: RFA: allow default .db for libgcj

Tom Tromey tromey@redhat.com
Thu Mar 10 18:10:00 GMT 2005


>>>>> "Tom" == Thomas Fitzsimmons <fitzsim@redhat.com> writes:

Tom> That location is fine.  It makes things easier for packagers if they can
Tom> find a version-specific file using -print-file-name=basename.  Will this
Tom> option work with classmap.db?

I looked into this yesterday.  It will work if we actually install a
.db file -- my current patch does this.

However... having the version in the directory name is kind of
unfriendly to end users.  They have to invoke 'gcj
-print-file-name=gcj-4.0.0/classmap.db'; in other words, they have to
correctly extract the version number first.

I suppose we could try installing the .db in the directory where jc1
goes, though that seems incorrect for other reasons.  In particular
then you'd have to use -print-prog-name, which reads wrong.

Another choice is to add a "print the filename" option to gcj-dbtool.
This is trivial, I think I'll do it unless there's a better idea.

Tom



More information about the Gcc-patches mailing list