Re: the build

From: Nic Ferrier <nferrier(at)tapsellferrier(dot)co(dot)uk>
To: "Paul Sorenson" <pauls(at)classware(dot)com(dot)au>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: the build
Date: 2003-04-15 11:33:14
Message-ID: 873ckkro5h.fsf@pooh-sticks-bridge.tapsellferrier.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc pgsql-patches

"Paul Sorenson" <pauls(at)classware(dot)com(dot)au> writes:

> Nic,
>
> I am not sure exactly what your design aims are - I personally tend to set
> reasonable defaults if possible and let the individuals doing the compiling
> override whatever they like. If you can't set defaults then would it be
> reasonable to build all configurations (at least those that are possible
> with the available compiler)?
>
> I noticed you haven't used the compiler attribute of the javac task. Either
> I have completely misunderstood what you are trying to do or you have a
> specific reason for not doing this.

Note that I didn't make the build.

It's easy to add gcj as a compiler, as long as there is some way of
telling make that it should be the compiler. The traditional way with
autotools is to do it with a macro JAVAC which can autodetect the
java compiler from the path and from conventional homes but be
overriden with an env var from the user, this:

./configure --with-java

might find /usr/local/bin/javac but

JAVAC=jikes ./confgure --with-java

would find the jikes from the PATH.

This is easy to fit into postgresql's autoconf build, simply add the
macros and a line to the build.properties specifying the
build.compiler.

The other bits are more difficult, and more important IMHO because
they effect cross compilation which is something one wants to do
sometimes when testing code for release.

Nic

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Peter Eisentraut 2003-04-15 13:24:11 Re: [GENERAL] Problem about pgsql's column alias
Previous Message Paul Sorenson 2003-04-15 10:51:16 Re: the build

Browse pgsql-patches by date

  From Date Subject
Next Message mlw 2003-04-15 11:51:30 Re: Are we losing momentum?
Previous Message Paul Sorenson 2003-04-15 10:51:16 Re: the build