From 4dd8a371bcb00863d9a52228d7458948dec8d685 Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on macOS)" <rob@synchro.net>
Date: Sun, 1 Dec 2024 16:25:50 -0800
Subject: [PATCH] Add -L to LDFLAGS, not CFLAGS for macos builds

This fixes all the "argument unused during compliation" warnings
---
 src/build/Common.gmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/build/Common.gmake b/src/build/Common.gmake
index ecccad7b34..b4fffbc887 100644
--- a/src/build/Common.gmake
+++ b/src/build/Common.gmake
@@ -389,7 +389,7 @@ ifeq ($(os),darwin)
  LDFLAGS += -mmacosx-version-min=$(MIN_MAC_OSX_VERSION)
  ifneq (,$(shell which brew))
   CFLAGS += -I$(shell brew --prefix)/include
-  CFLAGS += -L$(shell brew --prefix)/lib
+  LDFLAGS += -L$(shell brew --prefix)/lib
  endif
 endif
 ifeq ($(os),linux)    # Linux
-- 
GitLab