summaryrefslogtreecommitdiffstats
path: root/lib/libblocksruntime
diff options
context:
space:
mode:
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 0000000..01a78fe
--- /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 0000000..36418d3
--- /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
OpenPOWER on IntegriCloud