PostgreSQL 7.2.1 working on NetBSD/cobalt
Ok, I’ve got a patch for the build process, and it compiles and installs. Not tried any sort of performance or stability testing yet.
It’s a fairly simple fix to the
src/template/netbsd file, with an extra three lines added in order to specify
-mips2 to the gcc
CFLAGS when the machine is running the cobalt port. I hope that there won’t be any non mips2 capable machines doing that, but then they won’t be able to compile the program anyway, as it requires mips2 opcodes in the
s_lock.c file. I’ll be sending the patch to the PostgeSQL developers, but if you’re in the mood for an experiment, then try adding these three lines:
case $host_cpu in cobalt*) CFLAGS="$CFLAGS -mips2";; esac