mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Expand pkgconfig search path for wider BSD support #3106
This commit is contained in:
parent
808133e7dc
commit
fc3b4a683d
@ -9,6 +9,9 @@ Requires libvips v8.12.2
|
||||
* Improve performance and accuracy when compositing multiple images.
|
||||
[#2286](https://github.com/lovell/sharp/issues/2286)
|
||||
|
||||
* Expand pkgconfig search path for wider BSD support.
|
||||
[#3106](https://github.com/lovell/sharp/issues/3106)
|
||||
|
||||
* Ensure Windows C++ runtime is linked statically (regression in 0.30.0).
|
||||
[#3110](https://github.com/lovell/sharp/pull/3110)
|
||||
[@kleisauke](https://github.com/kleisauke)
|
||||
|
@ -86,9 +86,14 @@ const removeVendoredLibvips = function () {
|
||||
const pkgConfigPath = function () {
|
||||
if (process.platform !== 'win32') {
|
||||
const brewPkgConfigPath = spawnSync('which brew >/dev/null 2>&1 && eval $(brew --env) && echo $PKG_CONFIG_LIBDIR', spawnSyncOptions).stdout || '';
|
||||
return [brewPkgConfigPath.trim(), env.PKG_CONFIG_PATH, '/usr/local/lib/pkgconfig', '/usr/lib/pkgconfig']
|
||||
.filter(function (p) { return !!p; })
|
||||
.join(':');
|
||||
return [
|
||||
brewPkgConfigPath.trim(),
|
||||
env.PKG_CONFIG_PATH,
|
||||
'/usr/local/lib/pkgconfig',
|
||||
'/usr/lib/pkgconfig',
|
||||
'/usr/local/libdata/pkgconfig',
|
||||
'/usr/libdata/pkgconfig'
|
||||
].filter(Boolean).join(':');
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user