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.
|
* Improve performance and accuracy when compositing multiple images.
|
||||||
[#2286](https://github.com/lovell/sharp/issues/2286)
|
[#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).
|
* Ensure Windows C++ runtime is linked statically (regression in 0.30.0).
|
||||||
[#3110](https://github.com/lovell/sharp/pull/3110)
|
[#3110](https://github.com/lovell/sharp/pull/3110)
|
||||||
[@kleisauke](https://github.com/kleisauke)
|
[@kleisauke](https://github.com/kleisauke)
|
||||||
|
@ -86,9 +86,14 @@ const removeVendoredLibvips = function () {
|
|||||||
const pkgConfigPath = function () {
|
const pkgConfigPath = function () {
|
||||||
if (process.platform !== 'win32') {
|
if (process.platform !== 'win32') {
|
||||||
const brewPkgConfigPath = spawnSync('which brew >/dev/null 2>&1 && eval $(brew --env) && echo $PKG_CONFIG_LIBDIR', spawnSyncOptions).stdout || '';
|
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']
|
return [
|
||||||
.filter(function (p) { return !!p; })
|
brewPkgConfigPath.trim(),
|
||||||
.join(':');
|
env.PKG_CONFIG_PATH,
|
||||||
|
'/usr/local/lib/pkgconfig',
|
||||||
|
'/usr/lib/pkgconfig',
|
||||||
|
'/usr/local/libdata/pkgconfig',
|
||||||
|
'/usr/libdata/pkgconfig'
|
||||||
|
].filter(Boolean).join(':');
|
||||||
} else {
|
} else {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user