aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2023-04-24 17:31:43 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2023-04-24 20:34:01 +0000
commitd0251363478349b761639bb1f35e161b7401ca3c (patch)
tree1dab5785312f341e4b47bbccbd84ea8a760cb6a8
parentd7699a6a0718524bde43eae34352ffe222b4dca7 (diff)
downloadports-d0251363478349b761639bb1f35e161b7401ca3c.tar.gz
ports-d0251363478349b761639bb1f35e161b7401ca3c.zip
www/node19: fix build on powerpc64*
-rw-r--r--www/node19/files/extra-patch-common.gypi14
1 files changed, 6 insertions, 8 deletions
diff --git a/www/node19/files/extra-patch-common.gypi b/www/node19/files/extra-patch-common.gypi
index 8e817a2959c9..02db35b1a46c 100644
--- a/www/node19/files/extra-patch-common.gypi
+++ b/www/node19/files/extra-patch-common.gypi
@@ -1,13 +1,11 @@
---- 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 @@
+--- common.gypi.orig 2023-04-12 04:09:10 UTC
++++ common.gypi
+@@ -426,7 +426,7 @@
'ldflags': [ '-m32' ],
}],
- [ 'target_arch=="ppc64" and OS!="aix"', {
+ [ 'target_arch=="ppc64" and OS not in "aix os400"', {
- 'cflags': [ '-m64', '-mminimal-toc' ],
-- 'ldflags': [ '-m64' ],
+ 'cflags': [ '-m64' ],
-+ 'ldflags': [ '-m64' ],
+ 'ldflags': [ '-m64' ],
}],
- [ 'target_arch=="s390x"', {
- 'cflags': [ '-m64', '-march=z196' ],
+ [ 'target_arch=="s390x" and OS=="linux"', {