Skip to content

Commit 7d5784f

Browse files
committed
making macs compile with make
1 parent 02f6901 commit 7d5784f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

SRC/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ mongoserver: LDFLAGS+= -lcrypt -lsasl2 -L/usr/local/lib -lmongoc-1.0 -lbson-1.0
6666
endif
6767

6868
ifeq ($(UNAME), Darwin)
69-
$(info ************ MAC VERSION ************)
70-
LDFLAGS=-mmacosx-version-min=10.7 $(PGLOAD)
71-
CFLAGS=-mmacosx-version-min=10.7 -c -Wall -funsigned-char -Wno-write-strings -Wno-char-subscripts
69+
OSXRELEASE := $(shell defaults read loginwindow SystemVersionStampAsString)
70+
$(info ************ MAC VERSION $OSXRELEASE detected ************)
71+
LDFLAGS=-mmacosx-version-min=$(OSXRELEASE) -lcurl $(PGLOAD)
72+
CFLAGS=-mmacosx-version-min=$(OSXRELEASE) -c -Wall -funsigned-char -Wno-write-strings -Wno-char-subscripts
7273
endif
7374

7475
SOURCES=constructCode.cpp evserver.cpp csocket.cpp cs_ev.c dictionarySystem.cpp englishTagger.cpp factSystem.cpp json.cpp functionExecute.cpp english.cpp infer.cpp javascript.cpp jsmn.cpp markSystem.cpp mongodb.cpp os.cpp outputSystem.cpp patternSystem.cpp postgres.cpp privatesrc.cpp scriptCompile.cpp spellcheck.cpp secure.cpp systemVariables.cpp tagger.cpp testing.cpp textUtilities.cpp tokenSystem.cpp topicSystem.cpp userCache.cpp userSystem.cpp variableSystem.cpp mainSystem.cpp

0 commit comments

Comments
 (0)