diff --git a/Makefile b/Makefile index 9b7f9af..14a38eb 100644 --- a/Makefile +++ b/Makefile @@ -97,12 +97,17 @@ ifeq (Windows,$(UNAME)) TARGET = bin/sassc.exe endif +STATICFLAG=-static +ifeq (Darwin,$(UNAME)) + STATICFLAG= +endif + all: libsass $(TARGET) $(TARGET): build-$(BUILD) build-static: $(OBJECTS) $(LIB_STATIC) - $(CC) -static $(LDFLAGS) -o $(TARGET) $^ $(LDLIBS) + $(CC) $(STATICFLAG) $(LDFLAGS) -o $(TARGET) $^ $(LDLIBS) build-shared: $(OBJECTS) $(LIB_SHARED) $(CP) $(LIB_SHARED) bin/