diff --git a/lanms/Makefile b/lanms/Makefile index 416871d1..6c22abb2 100644 --- a/lanms/Makefile +++ b/lanms/Makefile @@ -1,7 +1,16 @@ CXXFLAGS = -I include -std=c++11 -O3 $(shell python3-config --cflags) -LDFLAGS = $(shell python3-config --ldflags) -DEPS = lanms.h $(shell find include -xtype f) +UNAME := $(shell uname) +ifeq ($(UNAME), Darwin) + LDSTACK = -Wl,-stack_size,1000000 + TMPFLAGS = $(shell python3-config --ldflags) + LDFLAGS := $(filter-out $(LDSTACK), $(TMPFLAGS)) + DEPS = lanms.h $(shell find include -type f) +else + LDFLAGS = $(shell python3-config --ldflags) + DEPS = lanms.h $(shell find include -xtype f) +endif + CXX_SOURCES = adaptor.cpp include/clipper/clipper.cpp LIB_SO = adaptor.so