From: | Warwick Hunter <whunter(at)agile(dot)tv> |
---|---|
To: | Ian Spray <pgsql(at)borg(dot)minimal(dot)cx> |
Cc: | pgsql-ports(at)postgresql(dot)org |
Subject: | Re: FIX: NetBSD/cobalt now compiles 7.2.1 |
Date: | 2002-06-10 23:29:31 |
Message-ID: | 3D05365B.7050209@agile.tv |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-ports |
Ian
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.
Cheers,
Warwick
> 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:
>
> ----
> CFLAGS=-O2
>
> case $host_cpu in
> cobalt*) CFLAGS="$CFLAGS -mips2";;
> esac
> ----
>
> 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
mailto:whunter(at)agile(dot)tv http://www.agile.tv
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-06-11 18:05:34 | Re: FIX: NetBSD/cobalt now compiles 7.2.1 |
Previous Message | Lamar Owen | 2002-06-10 18:03:31 | Re: redhat 6.2 |