Port-mips archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkgsrc build error for g95



> But the failure is with this other software inside the g95 source dir:
 :
> When I do "make configure" for g95, it apparently does not build a
> Makefile for libf95:

Hmm, configure looks called during "make", not make configure.

Anyway, work.i386/g95-0.92/libf95.a-0.92/runtime/mutex.c
seems simple enough. How about the attached change?

---
Izumi Tsutsui


--- work/g95-0.92/libf95.a-0.92/runtime/mutex.c.orig    2008-09-17 
03:45:13.000000000 +0000
+++ work/g95-0.92/libf95.a-0.92/runtime/mutex.c
@@ -8,6 +8,11 @@
 
 #include <stdlib.h>
 
+#ifdef __NetBSD__      /* XXX: available only 5.0 and later */
+#include <sys/atomic.h>
+#define cas(ptr, old, new)     atomic_cas_uint(ptr, old, new)
+
+#else
 
 /* x86/x86_64 */
 
@@ -158,6 +163,7 @@
 
 #endif
 
+#endif /* __NetBSD__ */
 
 
 /* aquire_lock()-- Aquire a lock.  Returns when we have the lock. */

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index