From cd065229173e6a1e7a49c474c4d07c1a76092929 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 19 Mar 2017 08:08:10 +1000 Subject: [PATCH] Another fix for freebsd --- utils/magimail/src/cmnllib/Makefile.linux | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/magimail/src/cmnllib/Makefile.linux b/utils/magimail/src/cmnllib/Makefile.linux index 446813d..7771183 100644 --- a/utils/magimail/src/cmnllib/Makefile.linux +++ b/utils/magimail/src/cmnllib/Makefile.linux @@ -1,6 +1,10 @@ INCDIR = ../ -CC = gcc $(CPPFLAGS) $(CFLAGS) -DPLATFORM_LINUX $(LDFLAGS) -I $(INCDIR) -Wall +ifeq (`uname -s`, FreeBSD) + CC = cc $(CPPFLAGS) $(CFLAGS) -DPLATFORM_LINUX $(LDFLAGS) -I $(INCDIR) -Wall +else + CC = gcc $(CPPFLAGS) $(CFLAGS) -DPLATFORM_LINUX $(LDFLAGS) -I $(INCDIR) -Wall +endif AR = ar -ru RM = rm -f