svn commit: r553908 - in head/www/node10: . files
Piotr Kubaj
pkubaj at FreeBSD.org
Mon Nov 2 14:10:38 UTC 2020
Author: pkubaj
Date: Mon Nov 2 14:10:37 2020
New Revision: 553908
URL: https://svnweb.freebsd.org/changeset/ports/553908
Log:
www/node10: fix build on powerpc64 elfv2 and powerpc64le
Backport from newer node ports.
Added:
head/www/node10/files/extra-patch-common.gypi (contents, props changed)
Modified:
head/www/node10/Makefile
Modified: head/www/node10/Makefile
==============================================================================
--- head/www/node10/Makefile Mon Nov 2 14:03:52 2020 (r553907)
+++ head/www/node10/Makefile Mon Nov 2 14:10:37 2020 (r553908)
@@ -32,6 +32,7 @@ OPTIONS_EXCLUDE_aarch64= DTRACE
OPTIONS_EXCLUDE_armv6= DTRACE
OPTIONS_EXCLUDE_armv7= DTRACE
OPTIONS_EXCLUDE_powerpc64= DTRACE
+OPTIONS_EXCLUDE_powerpc64le= DTRACE
BUNDLED_SSL_DESC= Use node.js's bundled OpenSSL implementation
BUNDLED_SSL_USES_OFF= ssl
@@ -82,6 +83,8 @@ BROKEN_SSL+= base
.if ${PORT_OPTIONS:MBUNDLED_SSL} && ${ARCH} != amd64 && ${ARCH} != i386
CONFIGURE_ARGS+=--openssl-no-asm
+.elif (defined(PPC_ABI) && ${PPC_ABI} == ELFv2) || ${ARCH} == powerpc64le
+EXTRA_PATCHES= ${PATCHDIR}/extra-patch-common.gypi
.endif
post-patch:
Added: head/www/node10/files/extra-patch-common.gypi
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/node10/files/extra-patch-common.gypi Mon Nov 2 14:10:37 2020 (r553908)
@@ -0,0 +1,13 @@
+--- common.gypi.orig 2019-10-01 15:32:40.000000000 +0200
++++ common.gypi 2019-10-16 12:47:09.236138000 +0200
+@@ -390,8 +390,8 @@
+ 'ldflags': [ '-m32' ],
+ }],
+ [ 'target_arch=="ppc64" and OS!="aix"', {
+- 'cflags': [ '-m64', '-mminimal-toc' ],
+- 'ldflags': [ '-m64' ],
++ 'cflags': [ '-m64' ],
++ 'ldflags': [ '-m64' ],
+ }],
+ [ 'target_arch=="s390x"', {
+ 'cflags': [ '-m64', '-march=z196' ],
More information about the svn-ports-all
mailing list