There was a patch submitted a while ago that doesn't
seem to have been rolled into 7.2.1 that fixes this.
It does it by patching s_lock.c to add the set .mips2
assembler directive. The patch is attached.
Your patch works just as well. It is what I have been
doing to get PostgreSQL to compile on the MIPS machine
I am using.
> Hi all,
> I've been messing with NetBSD/cobalt 1.5.3, and have found that the template
> file for NetBSD could be improved a little - without the following change
> the system dies in s_lock.c because the opcodes are only available with the
> -mips2 flag, and it's not correctly picked up for this platform.
> The file src/template/netbsd should have three lines added (similar to the
> current src/template/linux one), so the full file looks like this:
> case $host_cpu in
> cobalt*) CFLAGS="$CFLAGS -mips2";;
> With this change made the standard 7.2.1 tarball compiled without a single
> problem. I've yet to test speed and stability.
Warwick Hunter Agile TV Corporation
Voice: +61 7 5584 5912 Fax: +61 7 5575 9550
In response to
pgsql-ports by date
|Next:||From: Tom Lane||Date: 2002-06-11 18:05:34|
|Subject: Re: FIX: NetBSD/cobalt now compiles 7.2.1 |
|Previous:||From: Lamar Owen||Date: 2002-06-10 18:03:31|
|Subject: Re: redhat 6.2|