[PATCH] Makefile: check if Linux when setting LDFLFAGS
Export this patch
Fixes compile issue on macos. More info on `man gcc` or this question
on StackOverflow:
https://stackoverflow.com/questions/3801011/ld-library-not-found-for-lcrt0-o-on-osx-10-6-with-gcc-clang-static-flag
---
Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 96ad48c..1410652 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
VERSION=1.11.3
CFLAGS?=-g
MAINFLAGS:=-DVERSION='"$(VERSION)"' -Wall -Wextra -Werror -Wno-unused-parameter
-LDFLAGS+=-static
+ifeq ($(uname), Linux)
+ LDFLAGS+=-static
+endif
INCLUDE+=-Iinclude
PREFIX?=/usr/local
BINDIR?=$(PREFIX)/bin
--
2.39.3 (Apple Git-145)
What project is this patch for?