nixpkgs/pkgs/applications/misc/mupdf/0001-Use-command-v-in-favor-of-which.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
521 B
Diff
Raw Normal View History

Use command -v in favor of which
2022-03-21 15:35:56 +00:00
--- a/Makerules
+++ b/Makerules
@@ -170,7 +170,7 @@
ifneq ($(ARCHFLAGS),)
$(warning "MacOS with ARCHFLAGS set. Assuming we are building for arm64, and setting HAVE_LIBCRYPTO to no.")
HAVE_LIBCRYPTO := no
- else ifeq (, $(shell which pkg-config))
+ else ifeq (, $(shell command -v pkg-config))
2022-03-21 15:35:56 +00:00
$(warning "No pkg-config found, install it for proper integration of libcrypto")
else
HAVE_LIBCRYPTO := $(shell pkg-config --exists 'libcrypto >= 1.1.0' && echo yes)