FIX: NetBSD/cobalt now compiles 7.2.1 - Mailing list pgsql-ports

From Ian Spray
Subject FIX: NetBSD/cobalt now compiles 7.2.1
Date
Msg-id 20020606115138.A11513@borg.minimal.cx
Whole thread Raw
List pgsql-ports
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.

--
Ian Spray

pgsql-ports by date:

Previous
From: "Joshua b. Jore"
Date:
Subject: Re: [NOVICE] ecpg not found
Next
From: "Nick Taylor"
Date:
Subject: redhat 6.2