diff options
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs/0001-build-remove-redundant-mXX-flags-for-V8.patch | 133 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs_22.16.0.bb | 1 |
2 files changed, 134 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-build-remove-redundant-mXX-flags-for-V8.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-build-remove-redundant-mXX-flags-for-V8.patch new file mode 100644 index 0000000000..7841a9d7bc --- /dev/null +++ b/meta-oe/recipes-devtools/nodejs/nodejs/0001-build-remove-redundant-mXX-flags-for-V8.patch | |||
| @@ -0,0 +1,133 @@ | |||
| 1 | From 403264c02edc2689671dbefaf032e3acb4fb713d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= <targos@protonmail.com> | ||
| 3 | Date: Sat, 19 Apr 2025 12:22:10 +0200 | ||
| 4 | Subject: [PATCH] build: remove redundant `-mXX` flags for V8 | ||
| 5 | |||
| 6 | They are already set by `common.gypi`. | ||
| 7 | |||
| 8 | |||
| 9 | Needed to build on aarch64 build hosts with clang compiler | ||
| 10 | Drop it when upgrading to 0.24.x or newer. | ||
| 11 | |||
| 12 | Upstream-Status: Backport [https://github.com/nodejs/node/commit/403264c02edc2689671dbefaf032e3acb4fb713d] | ||
| 13 | |||
| 14 | PR-URL: https://github.com/nodejs/node/pull/57907 | ||
| 15 | Reviewed-By: James M Snell <jasnell@gmail.com> | ||
| 16 | Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> | ||
| 17 | Reviewed-By: Chengzhong Wu <legendecas@gmail.com> | ||
| 18 | Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> | ||
| 19 | Reviewed-By: Luigi Pinca <luigipinca@gmail.com> | ||
| 20 | --- | ||
| 21 | tools/v8_gypfiles/toolchain.gypi | 91 -------------------------------- | ||
| 22 | 1 file changed, 91 deletions(-) | ||
| 23 | |||
| 24 | Index: node-v22.16.0/tools/v8_gypfiles/toolchain.gypi | ||
| 25 | =================================================================== | ||
| 26 | --- node-v22.16.0.orig/tools/v8_gypfiles/toolchain.gypi | ||
| 27 | +++ node-v22.16.0/tools/v8_gypfiles/toolchain.gypi | ||
| 28 | @@ -97,33 +97,6 @@ | ||
| 29 | # Indicates if gcmole tools are downloaded by a hook. | ||
| 30 | 'gcmole%': 0, | ||
| 31 | }, | ||
| 32 | - | ||
| 33 | - # [GYP] this needs to be outside of the top level 'variables' | ||
| 34 | - 'conditions': [ | ||
| 35 | - ['host_arch=="ia32" or host_arch=="x64" or \ | ||
| 36 | - host_arch=="ppc" or host_arch=="ppc64" or \ | ||
| 37 | - host_arch=="s390x" or \ | ||
| 38 | - clang==1', { | ||
| 39 | - 'variables': { | ||
| 40 | - 'host_cxx_is_biarch%': 1, | ||
| 41 | - }, | ||
| 42 | - }, { | ||
| 43 | - 'variables': { | ||
| 44 | - 'host_cxx_is_biarch%': 0, | ||
| 45 | - }, | ||
| 46 | - }], | ||
| 47 | - ['target_arch=="ia32" or target_arch=="x64" or \ | ||
| 48 | - target_arch=="ppc" or target_arch=="ppc64" or \ | ||
| 49 | - target_arch=="s390x" or clang==1', { | ||
| 50 | - 'variables': { | ||
| 51 | - 'target_cxx_is_biarch%': 1, | ||
| 52 | - }, | ||
| 53 | - }, { | ||
| 54 | - 'variables': { | ||
| 55 | - 'target_cxx_is_biarch%': 0, | ||
| 56 | - }, | ||
| 57 | - }], | ||
| 58 | - ], | ||
| 59 | 'target_defaults': { | ||
| 60 | 'include_dirs': [ | ||
| 61 | '<(V8_ROOT)', | ||
| 62 | @@ -553,71 +526,6 @@ | ||
| 63 | '-mmmx', # Allows mmintrin.h for MMX intrinsics. | ||
| 64 | ], | ||
| 65 | }], | ||
| 66 | - ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | ||
| 67 | - or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ | ||
| 68 | - (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ | ||
| 69 | - v8_target_arch=="ppc")', { | ||
| 70 | - 'target_conditions': [ | ||
| 71 | - ['_toolset=="host"', { | ||
| 72 | - 'conditions': [ | ||
| 73 | - ['host_cxx_is_biarch==1', { | ||
| 74 | - 'conditions': [ | ||
| 75 | - ['host_arch=="s390x"', { | ||
| 76 | - 'cflags': [ '-m31' ], | ||
| 77 | - 'ldflags': [ '-m31' ] | ||
| 78 | - },{ | ||
| 79 | - 'cflags': [ '-m32' ], | ||
| 80 | - 'ldflags': [ '-m32' ] | ||
| 81 | - }], | ||
| 82 | - ], | ||
| 83 | - }], | ||
| 84 | - ], | ||
| 85 | - 'xcode_settings': { | ||
| 86 | - 'ARCHS': [ 'i386' ], | ||
| 87 | - }, | ||
| 88 | - }], | ||
| 89 | - ['_toolset=="target"', { | ||
| 90 | - 'conditions': [ | ||
| 91 | - ['target_cxx_is_biarch==1', { | ||
| 92 | - 'conditions': [ | ||
| 93 | - ['host_arch=="s390x"', { | ||
| 94 | - 'cflags': [ '-m31' ], | ||
| 95 | - 'ldflags': [ '-m31' ] | ||
| 96 | - },{ | ||
| 97 | - 'cflags': [ '-m32' ], | ||
| 98 | - 'ldflags': [ '-m32' ], | ||
| 99 | - }], | ||
| 100 | - ], | ||
| 101 | - }], | ||
| 102 | - ], | ||
| 103 | - 'xcode_settings': { | ||
| 104 | - 'ARCHS': [ 'i386' ], | ||
| 105 | - }, | ||
| 106 | - }], | ||
| 107 | - ], | ||
| 108 | - }], | ||
| 109 | - ['(OS=="linux" or OS=="android") and \ | ||
| 110 | - (v8_target_arch=="x64" or v8_target_arch=="arm64" or \ | ||
| 111 | - v8_target_arch=="ppc64" or v8_target_arch=="s390x")', { | ||
| 112 | - 'target_conditions': [ | ||
| 113 | - ['_toolset=="host"', { | ||
| 114 | - 'conditions': [ | ||
| 115 | - ['host_cxx_is_biarch==1', { | ||
| 116 | - 'cflags': [ '-m64' ], | ||
| 117 | - 'ldflags': [ '-m64' ] | ||
| 118 | - }], | ||
| 119 | - ], | ||
| 120 | - }], | ||
| 121 | - ['_toolset=="target"', { | ||
| 122 | - 'conditions': [ | ||
| 123 | - ['target_cxx_is_biarch==1', { | ||
| 124 | - 'cflags': [ '-m64' ], | ||
| 125 | - 'ldflags': [ '-m64' ], | ||
| 126 | - }], | ||
| 127 | - ] | ||
| 128 | - }], | ||
| 129 | - ], | ||
| 130 | - }], | ||
| 131 | ['OS=="android" and v8_android_log_stdout==1', { | ||
| 132 | 'defines': [ | ||
| 133 | 'V8_ANDROID_LOG_STDOUT', | ||
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_22.16.0.bb b/meta-oe/recipes-devtools/nodejs/nodejs_22.16.0.bb index 4bc829f140..0663e8c52e 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs_22.16.0.bb +++ b/meta-oe/recipes-devtools/nodejs/nodejs_22.16.0.bb | |||
| @@ -30,6 +30,7 @@ SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \ | |||
| 30 | file://0001-deps-disable-io_uring-support-in-libuv.patch \ | 30 | file://0001-deps-disable-io_uring-support-in-libuv.patch \ |
| 31 | file://0001-positional-args.patch \ | 31 | file://0001-positional-args.patch \ |
| 32 | file://0001-custom-env.patch \ | 32 | file://0001-custom-env.patch \ |
| 33 | file://0001-build-remove-redundant-mXX-flags-for-V8.patch \ | ||
| 33 | file://run-ptest \ | 34 | file://run-ptest \ |
| 34 | " | 35 | " |
| 35 | SRC_URI:append:class-target = " \ | 36 | SRC_URI:append:class-target = " \ |
