View | Details | Raw Unified | Return to bug 233650 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-1 / +6 lines)
Lines 12-18 Link Here
12
LICENSE=	MIT
12
LICENSE=	MIT
13
LICENSE_FILE=	${WRKSRC}/LICENSE
13
LICENSE_FILE=	${WRKSRC}/LICENSE
14
14
15
BROKEN_powerpc64=	fails to build: KeyError: 'action'
16
ONLY_FOR_ARCHS=		aarch64 amd64 armv6 armv7 i386 powerpc64
15
ONLY_FOR_ARCHS=		aarch64 amd64 armv6 armv7 i386 powerpc64
17
16
18
OPTIONS_DEFINE=		BUNDLED_SSL DOCS NLS DTRACE
17
OPTIONS_DEFINE=		BUNDLED_SSL DOCS NLS DTRACE
Lines 27-32 Link Here
27
# dt_modtext:/usr/src/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c(820): arm not implemented
26
# dt_modtext:/usr/src/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c(820): arm not implemented
28
OPTIONS_EXCLUDE_armv6=		DTRACE
27
OPTIONS_EXCLUDE_armv6=		DTRACE
29
OPTIONS_EXCLUDE_armv7=		DTRACE
28
OPTIONS_EXCLUDE_armv7=		DTRACE
29
OPTIONS_EXCLUDE_powerpc64=	DTRACE
30
30
31
BUNDLED_SSL_DESC=		Use node.js's bundled OpenSSL implementation
31
BUNDLED_SSL_DESC=		Use node.js's bundled OpenSSL implementation
32
BUNDLED_SSL_USES_OFF=		ssl
32
BUNDLED_SSL_USES_OFF=		ssl
Lines 85-95 Link Here
85
.if ${COMPILER_TYPE} == gcc
85
.if ${COMPILER_TYPE} == gcc
86
# GCC does not expose std::snprintf() without this define
86
# GCC does not expose std::snprintf() without this define
87
CXXFLAGS+=	-D_GLIBCXX_USE_C99
87
CXXFLAGS+=	-D_GLIBCXX_USE_C99
88
EXTRA_PATCHES=	${FILESDIR}/extra-patch-common.gypi
88
.endif
89
.endif
89
90
90
post-patch:
91
post-patch:
91
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
92
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
92
		${WRKSRC}/deps/v8/gypfiles/v8.gyp
93
		${WRKSRC}/deps/v8/gypfiles/v8.gyp
94
.if ${COMPILER_TYPE} == gcc
95
	${REINPLACE_CMD} 's|%%GCC_DEFAULT%%|${GCC_DEFAULT}|' \
96
		${WRKSRC}/common.gypi
97
.endif
93
98
94
post-configure:
99
post-configure:
95
	# Post-process Makefile and *.mk files created by node-gyp and remove
100
	# Post-process Makefile and *.mk files created by node-gyp and remove
(-)files/extra-patch-common.gypi (+11 lines)
Line 0 Link Here
1
--- common.gypi.orig	2018-11-29 19:32:11 UTC
2
+++ common.gypi
3
@@ -507,7 +507,7 @@
4
       }],
5
       ['OS=="freebsd"', {
6
         'ldflags': [
7
-          '-Wl,--export-dynamic',
8
+          '-Wl,--export-dynamic -Wl,-rpath=/usr/local/lib/gcc%%GCC_DEFAULT%% -L/usr/local/lib/gcc%%GCC_DEFAULT%%',
9
         ],
10
       }]
11
     ],

Return to bug 233650