Hola, The below diffs update node and all native node modules to use the recently imported libv8.
I have tested on amd64 and i386 is in the process of building. OK? Index: Makefile =================================================================== RCS file: /cvs/ports/lang/node/Makefile,v retrieving revision 1.10 diff -N -u -p Makefile --- Makefile 28 Sep 2012 01:04:14 -0000 1.10 +++ Makefile 13 Oct 2012 20:04:51 -0000 @@ -13,6 +13,8 @@ NODE_VERSION= v0.8.11 DISTNAME= node-${NODE_VERSION} PKGNAME= ${DISTNAME:S/v//g} +REVISION=0 + CATEGORIES= lang devel HOMEPAGE= http://nodejs.org/ @@ -37,7 +39,9 @@ LIB_DEPENDS= devel/libexecinfo USE_GMAKE= Yes -BUILD_DEPENDS= sysutils/flock +BUILD_DEPENDS= sysutils/flock \ + lang/libv8 + # node-gyp uses it at runtime RUN_DEPENDS= devel/gmake \ sysutils/flock @@ -48,10 +52,12 @@ MODPY_ADJ_FILES= tools/node-waf \ REGRESS_TARGET= test CONFIGURE_STYLE= simple CONFIGURE_ARGS= --openssl-use-sys \ - --shared-zlib + --shared-zlib \ + --shared-v8 SUBST_VARS+= CFLAGS SUBST_VARS+= PREFIX +SUBST_VARS+= LOCALBASE SUBST_VARS+= DISTFILES MAKE_ENV+= V=1 CXX=c++ CCFLAGS+="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" @@ -63,7 +69,8 @@ pre-configure: ln -sf ${LOCALBASE}/bin/python${MODPY_VERSION} ${WRKDIR}/bin/python ${SUBST_CMD} ${WRKDIST}/lib/module.js \ ${WRKDIST}/deps/npm/node_modules/node-gyp/lib/configure.js \ - ${WRKDIST}/deps/npm/node_modules/node-gyp/lib/install.js + ${WRKDIST}/deps/npm/node_modules/node-gyp/lib/install.js \ + ${WRKDIST}/common.gypi post-install: ${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \ Index: node.port.mk =================================================================== RCS file: /cvs/ports/lang/node/node.port.mk,v retrieving revision 1.1.1.1 diff -N -u -p node.port.mk --- node.port.mk 23 May 2012 15:11:43 -0000 1.1.1.1 +++ node.port.mk 13 Oct 2012 20:04:51 -0000 @@ -16,8 +16,9 @@ RUN_DEPENDS += lang/node>=0.6.17p2 ERRORS += "Fatal: Should not have PKG_ARCH=* when compiling extensions" . endif SHARED_ONLY = Yes -# All node extensions appear to link against these two libraries -WANTLIB += m stdc++ +# All node extensions appear to link against these libraries +WANTLIB += m stdc++ v8 crypto pthread ssl z +LIB_DEPENDS += lang/libv8 . else # Node libraries that don't contain C++ extensions should run on # any arch. Index: patches/patch-common_gypi =================================================================== RCS file: /cvs/ports/lang/node/patches/Attic/patch-common_gypi,v diff -N -u -p patches/patch-common_gypi --- /dev/null 13 Oct 2012 14:04:51 -0000 +++ patches/patch-common_gypi 13 Oct 2012 20:04:51 -0000 @@ -0,0 +1,17 @@ +$OpenBSD$ +--- common.gypi.orig Thu Sep 27 10:39:23 2012 ++++ common.gypi Tue Oct 9 13:01:32 2012 +@@ -161,9 +161,12 @@ + ], + }], + [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { +- 'cflags': [ '-Wall', '-pthread', ], ++ 'cflags': [ '-Wall', '-pthread', '-I${LOCALBASE}/include'], + 'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ], + 'ldflags': [ '-pthread', '-rdynamic' ], ++ 'libraries': [ ++ '-L${LOCALBASE}/lib' ++ ], + 'conditions': [ + [ 'target_arch=="ia32"', { + 'cflags': [ '-m32' ], Index: patches/patch-deps_v8_SConstruct =================================================================== RCS file: /cvs/ports/lang/node/patches/patch-deps_v8_SConstruct,v retrieving revision 1.1.1.1 diff -N -u -p patches/patch-deps_v8_SConstruct --- patches/patch-deps_v8_SConstruct 23 May 2012 15:11:43 -0000 1.1.1.1 +++ /dev/null 13 Oct 2012 19:57:02 -0000 @@ -1,26 +0,0 @@ -$OpenBSD: patch-deps_v8_SConstruct,v 1.1.1.1 2012/05/23 15:11:43 jasper Exp $ - -- Remove extra zoom-zoom! -- Don't link with -lpthread but use -pthread instead. - ---- deps/v8/SConstruct.orig Wed Nov 16 13:43:22 2011 -+++ deps/v8/SConstruct Wed Nov 16 13:44:20 2011 -@@ -94,7 +94,7 @@ LIBRARY_FLAGS = { - 'CPPDEFINES': ['ENABLE_DISASSEMBLER', 'DEBUG'], - }, - 'mode:release': { -- 'CCFLAGS': ['-O3', '-fomit-frame-pointer', '-fdata-sections', -+ 'CCFLAGS': ['-fomit-frame-pointer', '-fdata-sections', - '-ffunction-sections'], - }, - 'os:linux': { -@@ -358,7 +358,8 @@ MKSNAPSHOT_EXTRA_FLAGS = { - 'LINKFLAGS': ['-mt'] - }, - 'os:openbsd': { -- 'LIBS': ['execinfo', 'pthread'] -+ 'LIBS': ['execinfo'], -+ 'LINKFLAGS': ['-pthread'], - }, - 'os:win32': { - 'LIBS': ['winmm', 'ws2_32'], Index: patches/patch-deps_v8_src_atomicops_h =================================================================== RCS file: /cvs/ports/lang/node/patches/patch-deps_v8_src_atomicops_h,v retrieving revision 1.2 diff -N -u -p patches/patch-deps_v8_src_atomicops_h --- patches/patch-deps_v8_src_atomicops_h 18 Sep 2012 13:56:09 -0000 1.2 +++ /dev/null 13 Oct 2012 19:57:02 -0000 @@ -1,19 +0,0 @@ -$OpenBSD: patch-deps_v8_src_atomicops_h,v 1.2 2012/09/18 13:56:09 abieber Exp $ - -This patch can be removed when node has has r12522 of v8 as a dep. - - https://code.google.com/p/v8/source/detail?r=12522 - ---- deps/v8/src/atomicops.h.orig Tue Nov 8 18:37:38 2011 -+++ deps/v8/src/atomicops.h Tue Nov 8 18:38:53 2011 -@@ -69,7 +69,11 @@ typedef intptr_t Atomic64; - - // Use AtomicWord for a machine-sized pointer. It will use the Atomic32 or - // Atomic64 routines below, depending on your architecture. -+#if defined(__OpenBSD__) && defined(__i386__) -+typedef Atomic32 AtomicWord; -+#else - typedef intptr_t AtomicWord; -+#endif - - // Atomically execute: - // result = *ptr; Index: patches/patch-deps_v8_src_heap_cc =================================================================== RCS file: /cvs/ports/lang/node/patches/patch-deps_v8_src_heap_cc,v retrieving revision 1.2 diff -N -u -p patches/patch-deps_v8_src_heap_cc --- patches/patch-deps_v8_src_heap_cc 28 Jun 2012 08:30:28 -0000 1.2 +++ /dev/null 13 Oct 2012 19:57:02 -0000 @@ -1,34 +0,0 @@ -$OpenBSD: patch-deps_v8_src_heap_cc,v 1.2 2012/06/28 08:30:28 jasper Exp $ ---- deps/v8/src/heap.cc.orig Wed Jun 20 09:32:21 2012 -+++ deps/v8/src/heap.cc Wed Jun 20 09:33:24 2012 -@@ -5777,6 +5777,30 @@ bool Heap::ConfigureHeap(int max_semispace_size, - initial_semispace_size_ = Min(initial_semispace_size_, max_semispace_size_); - external_allocation_limit_ = 10 * max_semispace_size_; - -+ intptr_t max_virtual = OS::MaxVirtualMemory(); -+ -+ if (max_virtual > 0) { -+ intptr_t half = max_virtual >> 1; -+ intptr_t quarter = max_virtual >> 2; -+ // If we have limits on the amount of virtual memory we can use then we may -+ // be forced to lower the allocation limits. We reserve one quarter of the -+ // memory for young space and off-heap data. The rest is distributed as -+ // described below. -+ if (code_range_size_ > 0) { -+ // Reserve a quarter of the memory for the code range. The old space -+ // heap gets the remaining half. There is some unavoidable double -+ // counting going on here since the heap size is measured in committed -+ // virtual memory and the code range is only reserved virtual memory. -+ code_range_size_ = Min(code_range_size_, quarter); -+ max_old_generation_size_ = Min(max_old_generation_size_, half); -+ } else { -+ // Reserve three quarters of the memory for the old space heap including -+ // the executable code. -+ max_old_generation_size_ = Min(max_old_generation_size_, half + quarter); -+ } -+ } -+ -+ - // The old generation is paged and needs at least one page for each space. - int paged_space_count = LAST_PAGED_SPACE - FIRST_PAGED_SPACE + 1; - max_old_generation_size_ = Max(static_cast<intptr_t>(paged_space_count * Index: patches/patch-deps_v8_src_platform_h =================================================================== RCS file: /cvs/ports/lang/node/patches/patch-deps_v8_src_platform_h,v retrieving revision 1.2 diff -N -u -p patches/patch-deps_v8_src_platform_h --- patches/patch-deps_v8_src_platform_h 18 Sep 2012 13:56:09 -0000 1.2 +++ /dev/null 13 Oct 2012 19:57:02 -0000 @@ -1,19 +0,0 @@ -$OpenBSD: patch-deps_v8_src_platform_h,v 1.2 2012/09/18 13:56:09 abieber Exp $ - -This patch can be removed when node has has r12522 of v8 as a dep. - - https://code.google.com/p/v8/source/detail?r=12522 - ---- deps/v8/src/platform.h.orig Tue Nov 8 18:35:23 2011 -+++ deps/v8/src/platform.h Tue Nov 8 18:39:05 2011 -@@ -88,7 +88,11 @@ namespace internal { - - // Use AtomicWord for a machine-sized pointer. It is assumed that - // reads and writes of naturally aligned values of this type are atomic. -+#if defined(__OpenBSD__) && defined(__i386__) -+typedef Atomic32 AtomicWord; -+#else - typedef intptr_t AtomicWord; -+#endif - - class Semaphore; - class Mutex; Index: Makefile =================================================================== RCS file: /cvs/ports/databases/node-sqlite3/Makefile,v retrieving revision 1.6 diff -N -u -p Makefile --- Makefile 18 Jul 2012 04:28:40 -0000 1.6 +++ Makefile 13 Oct 2012 19:04:33 -0000 @@ -5,6 +5,8 @@ COMMENT = sqlite3 bindings for Node.js NPM_VERSION = 2.1.5 NPM_NAME = sqlite3 +REVISION = 0 + CATEGORIES = databases MAINTAINER = Aaron Bieber <abie...@openbsd.org> @@ -27,5 +29,8 @@ BUILD_DEPENDS = ${RUN_DEPENDS} # needs expresso and further love NO_REGRESS = Yes + +pre-configure: + ${SUBST_CMD} ${WRKDIST}/binding.gyp .include <bsd.port.mk> Index: patches/patch-binding_gyp =================================================================== RCS file: /cvs/ports/databases/node-sqlite3/patches/patch-binding_gyp,v retrieving revision 1.1.1.1 diff -N -u -p patches/patch-binding_gyp --- patches/patch-binding_gyp 10 May 2012 10:46:17 -0000 1.1.1.1 +++ patches/patch-binding_gyp 13 Oct 2012 19:04:33 -0000 @@ -2,9 +2,9 @@ $OpenBSD: patch-binding_gyp,v 1.1.1.1 2012/05/10 10:46 Build against the system sqlite3. ---- binding.gyp.orig Wed May 9 22:13:31 2012 -+++ binding.gyp Wed May 9 22:14:00 2012 -@@ -7,9 +7,13 @@ +--- binding.gyp.orig Mon Apr 23 16:47:08 2012 ++++ binding.gyp Sat Oct 13 12:55:45 2012 +@@ -7,9 +7,14 @@ 'src/node_sqlite3.cc', 'src/statement.cc' ], @@ -13,6 +13,7 @@ Build against the system sqlite3. - ] + 'link_settings': { + 'libraries': [ ++ '-L${LOCALBASE}/lib', + '-lsqlite3', + '-lm', + '-lstdc++' Index: Makefile =================================================================== RCS file: /cvs/ports/databases/node-sqlite3/Makefile,v retrieving revision 1.6 diff -N -u -p Makefile --- Makefile 18 Jul 2012 04:28:40 -0000 1.6 +++ Makefile 13 Oct 2012 19:04:33 -0000 @@ -5,6 +5,8 @@ COMMENT = sqlite3 bindings for Node.js NPM_VERSION = 2.1.5 NPM_NAME = sqlite3 +REVISION = 0 + CATEGORIES = databases MAINTAINER = Aaron Bieber <abie...@openbsd.org> @@ -27,5 +29,8 @@ BUILD_DEPENDS = ${RUN_DEPENDS} # needs expresso and further love NO_REGRESS = Yes + +pre-configure: + ${SUBST_CMD} ${WRKDIST}/binding.gyp .include <bsd.port.mk> Index: patches/patch-binding_gyp =================================================================== RCS file: /cvs/ports/databases/node-sqlite3/patches/patch-binding_gyp,v retrieving revision 1.1.1.1 diff -N -u -p patches/patch-binding_gyp --- patches/patch-binding_gyp 10 May 2012 10:46:17 -0000 1.1.1.1 +++ patches/patch-binding_gyp 13 Oct 2012 19:04:33 -0000 @@ -2,9 +2,9 @@ $OpenBSD: patch-binding_gyp,v 1.1.1.1 2012/05/10 10:46 Build against the system sqlite3. ---- binding.gyp.orig Wed May 9 22:13:31 2012 -+++ binding.gyp Wed May 9 22:14:00 2012 -@@ -7,9 +7,13 @@ +--- binding.gyp.orig Mon Apr 23 16:47:08 2012 ++++ binding.gyp Sat Oct 13 12:55:45 2012 +@@ -7,9 +7,14 @@ 'src/node_sqlite3.cc', 'src/statement.cc' ], @@ -13,6 +13,7 @@ Build against the system sqlite3. - ] + 'link_settings': { + 'libraries': [ ++ '-L${LOCALBASE}/lib', + '-lsqlite3', + '-lm', + '-lstdc++' Index: Makefile =================================================================== RCS file: /cvs/ports/devel/node-fibers/Makefile,v retrieving revision 1.8 diff -N -u -p Makefile --- Makefile 12 Jul 2012 21:42:54 -0000 1.8 +++ Makefile 14 Oct 2012 14:15:47 -0000 @@ -10,7 +10,7 @@ COMMENT = fiber/coroutine support for Node.js NPM_VERSION = 0.6.8 NPM_NAME = fibers -REVISION = 0 +REVISION = 1 CATEGORIES = devel MAINTAINER = Jeremy Evans <jer...@openbsd.org> @@ -32,6 +32,9 @@ SUBST_VARS = FIBERS_ARCH MODNODE_DEPENDS ?= node-gyp REGRESS_DEPENDS = ${BUILD_PKGPATH} + +pre-configure: + ${SUBST_CMD} ${WRKDIST}/binding.gyp do-regress: cd ${WRKDIST} && node test.js Index: patches/patch-binding_gyp =================================================================== RCS file: /cvs/ports/devel/node-fibers/patches/patch-binding_gyp,v retrieving revision 1.1 diff -N -u -p patches/patch-binding_gyp --- patches/patch-binding_gyp 28 Jun 2012 17:27:51 -0000 1.1 +++ patches/patch-binding_gyp 14 Oct 2012 14:15:47 -0000 @@ -3,8 +3,8 @@ $OpenBSD: patch-binding_gyp,v 1.1 2012/06/28 17:27:51 Bad hack to get it to use correct implementation, since it is recognizing the OpenBSD as Linux. ---- binding.gyp.orig Tue Jun 26 11:47:28 2012 -+++ binding.gyp Tue Jun 26 11:47:37 2012 +--- binding.gyp.orig Sun Jun 24 06:39:12 2012 ++++ binding.gyp Sun Oct 14 08:10:57 2012 @@ -21,7 +21,7 @@ 'ldflags': ['-pthread'], } @@ -14,3 +14,12 @@ recognizing the OpenBSD as Linux. ['OS == "mac"', { 'defines': ['CORO_SJLJ'], 'xcode_settings': { +@@ -29,7 +29,7 @@ + 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO', + }, + }], +- ['OS == "openbsd"', {'defines': ['CORO_ASM']}], ++ ['OS == "openbsd"', {'defines': ['CORO_ASM'], 'ldflags': ['-L${LOCALBASE}/lib']}], + ['target_arch == "arm"', + { + # There's been problems getting real fibers working on arm Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/devel/node-fibers/pkg/PLIST,v retrieving revision 1.2 diff -N -u -p pkg/PLIST --- pkg/PLIST 28 Jun 2012 17:27:51 -0000 1.2 +++ pkg/PLIST 14 Oct 2012 14:15:47 -0000 @@ -1,13 +1,13 @@ @comment $OpenBSD: PLIST,v 1.2 2012/06/28 17:27:51 jeremy Exp $ -bin/${FIBERS_ARCH}-v8-3.11 +bin/${FIBERS_ARCH}-v8-3.14 lib/node_modules/fibers/ lib/node_modules/fibers/.npmignore lib/node_modules/fibers/LICENSE lib/node_modules/fibers/README.md lib/node_modules/fibers/bin/ lib/node_modules/fibers/bin/.npmignore -lib/node_modules/fibers/bin/${FIBERS_ARCH}-v8-3.11/ -@bin lib/node_modules/fibers/bin/${FIBERS_ARCH}-v8-3.11/fibers.node +lib/node_modules/fibers/bin/${FIBERS_ARCH}-v8-3.14/ +@bin lib/node_modules/fibers/bin/${FIBERS_ARCH}-v8-3.14/fibers.node lib/node_modules/fibers/binding.gyp lib/node_modules/fibers/build/ lib/node_modules/fibers/build.js Index: security/node-bcrypt/Makefile =================================================================== RCS file: /cvs/ports/security/node-bcrypt/Makefile,v retrieving revision 1.8 diff -u -p -r1.8 Makefile --- security/node-bcrypt/Makefile 12 Jul 2012 21:42:54 -0000 1.8 +++ security/node-bcrypt/Makefile 12 Oct 2012 19:07:18 -0000 @@ -4,7 +4,7 @@ COMMENT = bcrypt hashing library for Nod NPM_VERSION = 0.6.0 NPM_NAME = bcrypt -REVISION = 0 +REVISION = 1 CATEGORIES = security MAINTAINER = Jeremy Evans <jer...@openbsd.org> @@ -20,6 +20,9 @@ PERMIT_DISTFILES_FTP = Yes MODULES = lang/node CONFIGURE_STYLE = npm ext + +pre-configure: + ${SUBST_CMD} ${WRKDIST}/binding.gyp # needs nodeunit NO_REGRESS = Yes Index: security/node-bcrypt/patches/patch-binding_gyp =================================================================== RCS file: security/node-bcrypt/patches/patch-binding_gyp diff -N security/node-bcrypt/patches/patch-binding_gyp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ security/node-bcrypt/patches/patch-binding_gyp 12 Oct 2012 18:55:27 -0000 @@ -0,0 +1,13 @@ +$OpenBSD$ +--- binding.gyp.orig Fri Oct 12 20:54:50 2012 ++++ binding.gyp Fri Oct 12 20:55:21 2012 +@@ -9,7 +9,8 @@ + 'src/blowfish.cc', + 'src/bcrypt.cc', + 'src/bcrypt_node.cc' +- ] ++ ], ++ 'ldflags' : ['-L${LOCALBASE}/lib'] + } + ] + } Index: Makefile =================================================================== RCS file: /cvs/ports/devel/node-gir/Makefile,v retrieving revision 1.2 diff -N -u -p Makefile --- Makefile 23 Sep 2012 17:52:27 -0000 1.2 +++ Makefile 13 Oct 2012 19:36:06 -0000 @@ -6,6 +6,8 @@ NPM_VERSION = 0.1.0 NPM_NAME = gir CATEGORIES = devel +REVISION = 0 + HOMEPAGE = https://github.com/creationix/node-gir MAINTAINER = Jasper Lievisse Adriaanse <jas...@openbsd.org> Index: patches/patch-binding_gyp =================================================================== RCS file: patches/patch-binding_gyp diff -N -u -p patches/patch-binding_gyp --- /dev/null 13 Oct 2012 13:36:06 -0000 +++ patches/patch-binding_gyp 13 Oct 2012 19:36:06 -0000 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- binding.gyp.orig Wed Jul 25 05:02:50 2012 ++++ binding.gyp Sat Oct 13 13:34:01 2012 +@@ -15,7 +15,7 @@ + 'src/types/function.cc' + ], + 'conditions': [ +- ['OS=="linux"', ++ ['OS=="linux" or OS=="openbsd"', + { + 'libraries': [ + '<!@(pkg-config --libs glib-2.0 gobject-introspection-1.0)' Index: Makefile =================================================================== RCS file: /cvs/ports/graphics/node-canvas/Makefile,v retrieving revision 1.5 diff -N -u -p Makefile --- Makefile 23 Sep 2012 17:30:16 -0000 1.5 +++ Makefile 13 Oct 2012 19:41:56 -0000 @@ -6,6 +6,8 @@ NPM_VERSION = 0.13.1 NPM_NAME = canvas CATEGORIES = graphics +REVISION = 0 + HOMEPAGE = https://github.com/learnboost/node-canvas # MIT Index: patches/patch-util_has_lib_sh =================================================================== RCS file: patches/patch-util_has_lib_sh diff -N -u -p patches/patch-util_has_lib_sh --- /dev/null 13 Oct 2012 13:41:57 -0000 +++ patches/patch-util_has_lib_sh 13 Oct 2012 19:41:56 -0000 @@ -0,0 +1,9 @@ +$OpenBSD$ +--- util/has_lib.sh.orig Sat Oct 13 13:40:37 2012 ++++ util/has_lib.sh Sat Oct 13 13:40:45 2012 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env bash ++#!/usr/bin/env sh + has_lib() { + local regex="lib$1.+(so|dylib)$" + Index: Makefile =================================================================== RCS file: /cvs/ports/sysutils/node-daemon/Makefile,v retrieving revision 1.3 diff -N -u -p Makefile --- Makefile 12 Jul 2012 21:42:54 -0000 1.3 +++ Makefile 13 Oct 2012 19:43:14 -0000 @@ -5,7 +5,7 @@ COMMENT = add-on for creating *nix daemons NPM_VERSION = 0.5.1 NPM_NAME = daemon CATEGORIES = sysutils devel -REVISION = 0 +REVISION = 1 HOMEPAGE = https://github.com/indexzero/daemon.node/ Index: Makefile =================================================================== RCS file: /cvs/ports/sysutils/node-syslog/Makefile,v retrieving revision 1.5 diff -N -u -p Makefile --- Makefile 12 Oct 2012 15:34:00 -0000 1.5 +++ Makefile 13 Oct 2012 19:54:11 -0000 @@ -6,6 +6,8 @@ NPM_VERSION = 1.1.6 NPM_NAME = node-syslog CATEGORIES = sysutils +REVISION = 0 + HOMEPAGE = http://github.com/schamane/node-syslog MAINTAINER = Jasper Lievisse Adriaanse <jas...@openbsd.org> @@ -21,5 +23,8 @@ MODULES = lang/node CONFIGURE_STYLE = npm ext NO_REGRESS = Yes + +pre-configure: + ${SUBST_CMD} ${WRKDIST}/binding.gyp .include <bsd.port.mk> Index: patches/patch-binding_gyp =================================================================== RCS file: patches/patch-binding_gyp diff -N -u -p patches/patch-binding_gyp --- /dev/null 13 Oct 2012 13:54:11 -0000 +++ patches/patch-binding_gyp 13 Oct 2012 19:54:11 -0000 @@ -0,0 +1,17 @@ +$OpenBSD$ +--- binding.gyp.orig Sat Oct 13 13:52:28 2012 ++++ binding.gyp Sat Oct 13 13:52:49 2012 +@@ -5,7 +5,10 @@ + "sources": [ "syslog.cc" ], + "cflags": [ + "-fPIC" +- ] ++ ], ++ "ldflags": [ ++ "-L${LOCALBASE}/lib" ++ ] + } + ] +-} +\ No newline at end of file ++}