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:
Bo Anderson 2020-04-05 22:43:55 +01:00 committed by GitHub
commit 8fe74f9b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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" \
"$@" "$@"