summaryrefslogtreecommitdiff
path: root/devel/libatomic_ops
diff options
context:
space:
mode:
authorsketch <sketch@pkgsrc.org>2009-01-26 15:01:56 +0000
committersketch <sketch@pkgsrc.org>2009-01-26 15:01:56 +0000
commitf9d1523a141259476178f00190bd1b7be56ddd16 (patch)
tree83d6c45ada1b07d6e091b17e97aa901c935266fd /devel/libatomic_ops
parent58627bc5ce97a0c16efe8c42a9e22e37fa9f299b (diff)
downloadpkgsrc-f9d1523a141259476178f00190bd1b7be56ddd16.tar.gz
Rudimentary support for Sun Studio on x86.
Diffstat (limited to 'devel/libatomic_ops')
-rw-r--r--devel/libatomic_ops/distinfo4
-rw-r--r--devel/libatomic_ops/patches/patch-ad16
-rw-r--r--devel/libatomic_ops/patches/patch-ae10
3 files changed, 29 insertions, 1 deletions
diff --git a/devel/libatomic_ops/distinfo b/devel/libatomic_ops/distinfo
index 31a04fb80ec..b1233f45653 100644
--- a/devel/libatomic_ops/distinfo
+++ b/devel/libatomic_ops/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2008/12/22 02:46:52 jmcneill Exp $
+$NetBSD: distinfo,v 1.4 2009/01/26 15:01:56 sketch Exp $
SHA1 (libatomic_ops-20081024.tar.gz) = 70dcc68c89ea8ce8b8e6c936ea337eca31f13662
RMD160 (libatomic_ops-20081024.tar.gz) = a9194631fafc2d4ce68cea93dbc212d7212cab13
@@ -6,3 +6,5 @@ Size (libatomic_ops-20081024.tar.gz) = 193399 bytes
SHA1 (patch-aa) = bf53ad892ba270b1d7a9bd1fa14012ca83ab5323
SHA1 (patch-ab) = 74674124fff34faf2aae0d694566c66ffaf9df25
SHA1 (patch-ac) = 40eeac276e322ea6f28743c183c11e92b1ab8de5
+SHA1 (patch-ad) = 5952b7a292a381b00b8e101bdf48452555a5a660
+SHA1 (patch-ae) = 5fe403a33d8b49e0ac3f21aaa65ea42d5e656251
diff --git a/devel/libatomic_ops/patches/patch-ad b/devel/libatomic_ops/patches/patch-ad
new file mode 100644
index 00000000000..8696544a2aa
--- /dev/null
+++ b/devel/libatomic_ops/patches/patch-ad
@@ -0,0 +1,16 @@
+$NetBSD: patch-ad,v 1.1 2009/01/26 15:01:56 sketch Exp $
+
+--- src/atomic_ops.h.orig Wed Oct 22 02:12:17 2008
++++ src/atomic_ops.h Mon Jan 26 14:48:46 2009
+@@ -251,7 +251,10 @@
+ # endif
+ #endif
+
+-#if !defined(__GNUC__) && (defined(sparc) || defined(__sparc)) \
++#if defined(__SUNPRO_C) && defined(__i386)
++# include "atomic_ops/sysdeps/sunc/x86.h"
++# define AO_CAN_EMUL_CAS
++#elif !defined(__GNUC__) && (defined(sparc) || defined(__sparc)) \
+ && !defined(AO_USE_PTHREAD_DEFS)
+ # include "atomic_ops/sysdeps/sunc/sparc.h"
+ # define AO_CAN_EMUL_CAS
diff --git a/devel/libatomic_ops/patches/patch-ae b/devel/libatomic_ops/patches/patch-ae
new file mode 100644
index 00000000000..058cd0d2e5a
--- /dev/null
+++ b/devel/libatomic_ops/patches/patch-ae
@@ -0,0 +1,10 @@
+$NetBSD: patch-ae,v 1.1 2009/01/26 15:01:56 sketch Exp $
+
+--- /dev/null 2009-01-26 14:55:50.000000000 +0000
++++ src/atomic_ops/sysdeps/sunc/x86.h 2009-01-26 14:48:08.246647402 +0000
+@@ -0,0 +1,5 @@
++#include "../all_aligned_atomic_load_store.h"
++#include "../ordered_except_wr.h"
++#include "../test_and_set_t_is_char.h"
++#include "../standard_ao_double_t.h"
++#include "../ao_t_is_int.h"