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

Collapse All | Expand All

(-)Makefile (-1 / +6 lines)
Lines 13-19 Link Here
13
LICENSE=	MIT
13
LICENSE=	MIT
14
LICENSE_FILE=	${WRKSRC}/LICENSE
14
LICENSE_FILE=	${WRKSRC}/LICENSE
15
15
16
BROKEN_powerpc64=	fails to build: KeyError: 'action'
17
ONLY_FOR_ARCHS=		aarch64 amd64 armv6 armv7 i386 powerpc64
16
ONLY_FOR_ARCHS=		aarch64 amd64 armv6 armv7 i386 powerpc64
18
17
19
OPTIONS_DEFINE=		BUNDLED_SSL DOCS NLS DTRACE
18
OPTIONS_DEFINE=		BUNDLED_SSL DOCS NLS DTRACE
Lines 28-33 Link Here
28
# dt_modtext:/usr/src/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c(820): arm not implemented
27
# dt_modtext:/usr/src/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c(820): arm not implemented
29
OPTIONS_EXCLUDE_armv6=		DTRACE
28
OPTIONS_EXCLUDE_armv6=		DTRACE
30
OPTIONS_EXCLUDE_armv7=		DTRACE
29
OPTIONS_EXCLUDE_armv7=		DTRACE
30
OPTIONS_EXCLUDE_powerpc64=	DTRACE
31
31
32
BUNDLED_SSL_DESC=		Use node.js's bundled OpenSSL implementation
32
BUNDLED_SSL_DESC=		Use node.js's bundled OpenSSL implementation
33
BUNDLED_SSL_USES_OFF=		ssl
33
BUNDLED_SSL_USES_OFF=		ssl
Lines 86-96 Link Here
86
.if ${COMPILER_TYPE} == gcc
86
.if ${COMPILER_TYPE} == gcc
87
# GCC does not expose std::snprintf() without this define
87
# GCC does not expose std::snprintf() without this define
88
CXXFLAGS+=	-D_GLIBCXX_USE_C99
88
CXXFLAGS+=	-D_GLIBCXX_USE_C99
89
EXTRA_PATCHES=	${FILESDIR}/extra-patch-common.gypi
89
.endif
90
.endif
90
91
91
post-patch:
92
post-patch:
92
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
93
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
93
		${WRKSRC}/deps/v8/gypfiles/v8.gyp
94
		${WRKSRC}/deps/v8/gypfiles/v8.gyp
95
.if ${CHOSEN_COMPILER_TYPE} == gcc
96
	${REINPLACE_CMD} 's|%%GCC_DEFAULT%%|${GCC_DEFAULT}|' \
97
		${WRKSRC}/common.gypi
98
.endif
94
99
95
post-configure:
100
post-configure:
96
	# Post-process Makefile and *.mk files created by node-gyp and remove
101
	# 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 233835