openbsd-ports/devel/node-fibers/patches/patch-src_Makefile
jeremy 19d897862e Import node-fibers-0.6.4.
This extension provides a fiber/coroutine implementation for nodejs.  It
also ships with a futures implementation that wraps existing nodejs
async functions, allowing synchronous style code that handles exceptions
properly and doesn't block the nodejs event loop.

OK sthen@
2012-04-03 18:46:03 +00:00

23 lines
699 B
Plaintext

$OpenBSD: patch-src_Makefile,v 1.1.1.1 2012/04/03 18:46:03 jeremy Exp $
--- src/Makefile.orig Wed Jan 4 21:24:45 2012
+++ src/Makefile Wed Feb 1 14:25:00 2012
@@ -9,6 +9,9 @@ endif
ifeq ($(NODE_PLATFORM), darwin)
CPP_NODEFLAGS = -bundle -undefined dynamic_lookup
endif
+ifeq ($(NODE_PLATFORM), openbsd)
+ CPP_NODEFLAGS = -fPIC -shared -Wl,-Bdynamic
+endif
all: fibers.node
@@ -19,7 +22,7 @@ coroutine.o: coroutine.cc
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -fPIC -c -o $@ $^
fibers.node: fibers.cc coroutine.o libcoro.o
- $(CXX) $(CPP_NODEFLAGS) $(CPPFLAGS) $^ -o $@ -lpthread
+ $(CXX) $(CPP_NODEFLAGS) $(CPPFLAGS) $^ -o $@ -pthread
clean:
-$(RM) fibers.node libcoro.o coroutine.o