HomeFreeBSD

www/node: fix SSL/TLS on i386

Description

www/node: fix SSL/TLS on i386

The upgrade to v10.0.0 included significant changes to the OpenSSL
dependency in Node.js, in particular how the build was configured.
Upstream does not include a BSD-x86 config anymore, so the www/node port
ended up using the BSD-x86_64 no-asm config for all builds except x86_64
(which used the asm optimized config). This was a mistake, causing all
32-bit archs to build OpenSSL configured for a 64-bit architecture, and
it causes problems with SSL/TLS as described in PR 228135.

Change the build config to not use BSD-x86_64 no-asm for 32-bit i386 and
arm builds, falling back to the generic linux-elf configuration instead.
Patches remove Linux specific libraries (-ldl) and keep the CFLAGS the
same as the BSD config.

PR: 228135
Reported by: Marcin Cie\xc5\x9blak <saper@saper.info>

Details

Provenance
bhughesAuthored on
Parents
rP469780: misc/cldr-emoji-annotation: Fix the location of .pc file
Branches
Unknown
Tags
Unknown