aboutsummaryrefslogtreecommitdiff
path: root/lib/libblocksruntime
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2010-11-11 15:13:11 +0000
committerEd Schouten <ed@FreeBSD.org>2010-11-11 15:13:11 +0000
commita3cf0ef5a295c885c895fabfd56470c0d1db322d (patch)
tree9f851f7f6da4a4d9010d26bf17881d3bc5320f2b /lib/libblocksruntime
parentbfb82398546572d39076673b586d16bbfbd42350 (diff)
parent217b614317dad692116a3a06fe94ea8f61a59edb (diff)
downloadsrc-a3cf0ef5a295c885c895fabfd56470c0d1db322d.tar.gz
src-a3cf0ef5a295c885c895fabfd56470c0d1db322d.zip
Import libcompiler_rt into HEAD and add Makefiles.
Obtained from: user/ed/compiler-rt
Notes
Notes: svn path=/head/; revision=215125
Diffstat (limited to 'lib/libblocksruntime')
-rw-r--r--lib/libblocksruntime/Makefile13
-rw-r--r--lib/libblocksruntime/config.h14
2 files changed, 27 insertions, 0 deletions
diff --git a/lib/libblocksruntime/Makefile b/lib/libblocksruntime/Makefile
new file mode 100644
index 000000000000..01a78fe7c01e
--- /dev/null
+++ b/lib/libblocksruntime/Makefile
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+LIB= BlocksRuntime
+SHLIB_MAJOR=0
+CFLAGS+=-I${.CURDIR}
+WARNS?= 2
+
+.PATH: ${.CURDIR}/../../contrib/compiler-rt/BlocksRuntime
+
+INCS= Block.h Block_private.h
+SRCS= data.c runtime.c
+
+.include <bsd.lib.mk>
diff --git a/lib/libblocksruntime/config.h b/lib/libblocksruntime/config.h
new file mode 100644
index 000000000000..36418d30fedf
--- /dev/null
+++ b/lib/libblocksruntime/config.h
@@ -0,0 +1,14 @@
+/* $FreeBSD$ */
+
+/* #undef HAVE_SYS_BYTEORDER_H */
+/* #undef HAVE_AVAILABILITY_MACROS_H */
+/* #undef HAVE_TARGET_CONDITIONALS_H */
+/* #undef HAVE_LIBKERN_OSATOMIC_H */
+
+#define HAVE_SYSCONF 1
+
+/* #undef HAVE_OSATOMIC_COMPARE_AND_SWAP_INT */
+/* #undef HAVE_OSATOMIC_COMPARE_AND_SWAP_LONG */
+
+#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_INT 1
+#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_LONG 1