From 0c8b4a3320cc6a9c1470b7da21b38fb3036a83e1 Mon Sep 17 00:00:00 2001 From: Camden Narzt Date: Fri, 2 Feb 2024 21:22:56 -0600 Subject: [PATCH] =?UTF-8?q?don=E2=80=99t=20confuse=20libgetargv++=20PREFIX?= =?UTF-8?q?=20and=20c=20lib=20PREFIX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile-variables | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile-variables b/Makefile-variables index 2e5ebae..ee9390d 100644 --- a/Makefile-variables +++ b/Makefile-variables @@ -1,6 +1,6 @@ PREFIX ?= /usr/local ifndef MACOS_VER_NUM -MACOS_VER_NUM := $(shell vtool -show-build $(PREFIX)/lib/libgetargv.dylib | awk '/minos/{print $$2}') +MACOS_VER_NUM := $(shell vtool -show-build $(shell pkg-config --libs-only-L getargv)/libgetargv.dylib | awk '/minos/{print $$2}') endif MACOS_VER_MAJOR := $(shell echo $(MACOS_VER_NUM) | cut -f1 -d.) MACOS_VER_MINOR := $(shell echo $(MACOS_VER_NUM) | cut -f2 -d.)