~sircmpwn/public-inbox

Makefile: check if Linux when setting LDFLFAGS v1 PROPOSED

Nils Riedemann: 1
 Makefile: check if Linux when setting LDFLFAGS

 1 files changed, 3 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/public-inbox/patches/54807/mbox | git am -3
Learn more about email & git

[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?