remove build dependency on which
authorjoe miller <joeym@joeym.net>
Sat, 15 Aug 2020 00:07:30 +0000 (17:07 -0700)
committerGitHub <noreply@github.com>
Sat, 15 Aug 2020 00:07:30 +0000 (17:07 -0700)
Makefile

index ef66d9cfc9bd64adb5cad82c5d9e1b33824b486b..9494732196e250538111f9df06bb499551ee3ed8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 
-PKG_CONFIG=$(shell which pkg-config)
+PKG_CONFIG=$(shell command -v pkg-config 2> /dev/null)
 ifeq ($(PKG_CONFIG),)
 $(error "Install pkg-config to make it work")
 endif