public inbox for rhug-rhats@sourceware.org
 help / color / mirror / Atom feed
* Properties files
@ 2002-12-13  3:20 Gary Benson
  2002-12-13 10:49 ` Anthony Green
  0 siblings, 1 reply; 3+ messages in thread
From: Gary Benson @ 2002-12-13  3:20 UTC (permalink / raw)
  To: rhug-rhats

Hi all,

I just spent a couple of days chasing what I thought was a gcj bug but
that turned out not to be.  Some of the packages have .properties
files as well as .java files, and these are dealt with in the
Makefiles as follows:

| FOOBAR_PROP_S = \
| file1.properties \
| file2.properties
| 
| FOOBAR_PROP_O = $(FOOBAR_PROP_S:.properties=.o)
| 
| %.o: %.properties
|      $(top_srcdir)/mkinstalldirs `dirname $@`
|      $(GCJ) --resource `echo $< | sed "s/.*\/src\/share\///g"` -o $@ -c $<
| 
| lib_bar_foo_la_LIBADD = $(FOOBAR_PROP_O)

Now, Tomcat 4 has one case where there exists File.java and
File.properties, meaning that they both compile to the same .o file.
This causes all sorts of 'multiple definition of File' and 'File
changed size from 46 to 22 bytes in File.o'

To avoid this in future I'd like to make the following changes to all
packages that have .properties files.

1. Change FOOBAR_PROP_O = $(FOOBAR_PROP_S:.properties=.o)
       to FOOBAR_PROP_O = $(FOOBAR_PROP_S:.properties=_prop.o)

2. Change %.o: %.properties
       to %_prop.o: %.properties

Any objections?

Cheers,
Gary

[ gbenson@redhat.com ][ GnuPG 85A8F78B ][ http://inauspicious.org/ ]

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

* Re: Properties files
  2002-12-13  3:20 Properties files Gary Benson
@ 2002-12-13 10:49 ` Anthony Green
  2002-12-15 23:45   ` Gary Benson
  0 siblings, 1 reply; 3+ messages in thread
From: Anthony Green @ 2002-12-13 10:49 UTC (permalink / raw)
  To: Gary Benson; +Cc: rhug-rhats

On Fri, 2002-12-13 at 03:19, Gary Benson wrote:
> I just spent a couple of days chasing what I thought was a gcj bug but
> that turned out not to be. 

Oh, that must have been frustrating.  Sorry.

> 1. Change FOOBAR_PROP_O = $(FOOBAR_PROP_S:.properties=.o)
>        to FOOBAR_PROP_O = $(FOOBAR_PROP_S:.properties=_prop.o)
> 
> 2. Change %.o: %.properties
>        to %_prop.o: %.properties

Sounds good to me.

AG


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

* Re: Properties files
  2002-12-13 10:49 ` Anthony Green
@ 2002-12-15 23:45   ` Gary Benson
  0 siblings, 0 replies; 3+ messages in thread
From: Gary Benson @ 2002-12-15 23:45 UTC (permalink / raw)
  To: rhug-rhats

On Fri, Dec 13, 2002 at 10:50:31AM -0800, Anthony Green wrote:
> On Fri, 2002-12-13 at 03:19, Gary Benson wrote:
> > I just spent a couple of days chasing what I thought was a gcj bug but
> > that turned out not to be. 
> 
> Oh, that must have been frustrating.  Sorry.

Just me being stupid :)

> > 1. Change FOOBAR_PROP_O = $(FOOBAR_PROP_S:.properties=.o)
> >        to FOOBAR_PROP_O = $(FOOBAR_PROP_S:.properties=_prop.o)
> > 
> > 2. Change %.o: %.properties
> >        to %_prop.o: %.properties
> 
> Sounds good to me.

Cool, I'll do it then.

Cheers,
Gary

[ gbenson@redhat.com ][ GnuPG 85A8F78B ][ http://inauspicious.org/ ]

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

end of thread, other threads:[~2002-12-16  7:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-13  3:20 Properties files Gary Benson
2002-12-13 10:49 ` Anthony Green
2002-12-15 23:45   ` Gary Benson

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).