Merge pull request #7291 from Bo98/pkg-config-10.13
shims/mac/super/pkg-config: fix macOS <=10.13 compatibility
This commit is contained in:
commit
8fe74f9b67
@ -1,5 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
exec "$HOMEBREW_OPT/pkg-config/bin/pkg-config" \
|
pkg_config="$HOMEBREW_OPT/pkg-config/bin/pkg-config"
|
||||||
|
|
||||||
|
if [ -z "$HOMEBREW_SDKROOT" ]; then
|
||||||
|
exec "$pkg_config" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec "$pkg_config" \
|
||||||
"--define-variable=homebrew_sdkroot=$HOMEBREW_SDKROOT" \
|
"--define-variable=homebrew_sdkroot=$HOMEBREW_SDKROOT" \
|
||||||
"$@"
|
"$@"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user