Ensure ARM64 pre-built binaries use correct C++11 ABI

This commit is contained in:
Lovell Fuller 2017-04-26 21:41:03 +01:00
parent f3f83494f5
commit 6592361c5a
3 changed files with 11 additions and 3 deletions

View File

@ -42,8 +42,8 @@ const unpack = function (tarPath, done) {
const platformId = function () {
const platformId = [platform];
if (arch === 'arm' || arch === 'armhf' || arch === 'arch64') {
const armVersion = (arch === 'arch64') ? '8' : process.env.npm_config_armv || process.config.variables.arm_version || '6';
if (arch === 'arm' || arch === 'armhf' || arch === 'arm64') {
const armVersion = (arch === 'arm64') ? '8' : process.env.npm_config_armv || process.config.variables.arm_version || '6';
platformId.push('armv' + armVersion);
} else {
platformId.push(arch);

View File

@ -14,6 +14,14 @@ Requires libvips v8.5.2.
[#607](https://github.com/lovell/sharp/issues/607)
[@puzrin](https://github.com/puzrin)
* Ensure ARM64 pre-built binaries use correct C++11 ABI version.
[#772](https://github.com/lovell/sharp/issues/772)
[@ajiratech2](https://github.com/ajiratech2)
* Expose libvips' "squash" parameter to enable 1-bit TIFF output.
[#783](https://github.com/lovell/sharp/pull/783)
[@YvesBos](https://github.com/YvesBos)
### v0.17 - "*quill*"
Requires libvips v8.4.2.

View File

@ -15,4 +15,4 @@ RUN \
ENV \
PLATFORM=linux-armv8 \
CHOST=aarch64-linux-gnu \
FLAGS="-march=armv8-a -Os"
FLAGS="-march=armv8-a -Os -D_GLIBCXX_USE_CXX11_ABI=0"