4c3e6cc301
patches/ppc32.patch used "host_arch" instead of "target_arch" to check whether to link against -latomic, and didn't include 32-bit ARM in the list of targets that might need it. This addresses build failures on armv6l as well as some lesser-used architectures. Additionally, libatomic-devel is now included in makedepends for all architectures (not just when `XBPS_TARGET_NO_ATOMIC8` is set) because the build system can't tell the difference between armv6l and armv7l. This matches how it's done for `nodejs{,-lts}` and doesn't cause the armv7l build to actually depend on libatomic at runtime.
14 lines
397 B
Diff
14 lines
397 B
Diff
--- node.gyp
|
|
+++ node.gyp
|
|
@@ -479,6 +479,11 @@
|
|
'msvs_disabled_warnings!': [4244],
|
|
|
|
'conditions': [
|
|
+ [ 'target_arch=="mips" or target_arch=="mipsel" or target_arch=="ppc" or target_arch=="arm"', {
|
|
+ 'link_settings': {
|
|
+ 'libraries': [ '-latomic' ],
|
|
+ },
|
|
+ }],
|
|
[ 'node_code_cache_path!=""', {
|
|
'sources': [ '<(node_code_cache_path)' ]
|
|
}, {
|