$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