File stud-out_of_tree_ebtree.patch of Package stud

Index: Makefile
===================================================================
--- Makefile.orig
+++ Makefile
@@ -17,17 +17,18 @@ all: realall
 
 # Shared cache feature
 ifneq ($(USE_SHARED_CACHE),)
-CFLAGS += -DUSE_SHARED_CACHE -DUSE_SYSCALL_FUTEX
-OBJS   += shctx.o ebtree/libebtree.a
-ALL    += ebtree
-
-ebtree/libebtree.a: $(wildcard ebtree/*.c)
-	make -C ebtree
-ebtree:
-	@[ -d ebtree ] || ( \
-		echo "*** Download libebtree at http://1wt.eu/tools/ebtree/" ; \
-		echo "*** Untar it and make a link named 'ebtree' to point on it"; \
-		exit 1 )
+CFLAGS += -DUSE_SHARED_CACHE -DUSE_SYSCALL_FUTEX -I/usr/include/ebtree
+OBJS   += shctx.o
+LDFLAGS += -lebtree
+# ALL    += ebtree
+#
+# ebtree/libebtree.a: $(wildcard ebtree/*.c)
+# 	make -C ebtree
+# ebtree:
+# 	@[ -d ebtree ] || ( \
+# 		echo "*** Download libebtree at http://1wt.eu/tools/ebtree/" ; \
+# 		echo "*** Untar it and make a link named 'ebtree' to point on it"; \
+# 		exit 1 )
 endif
 
 ALL += stud
openSUSE Build Service is sponsored by