Skip to content

Commit

Permalink
Dont try to build a real static binary on Mac OS X/Darwin
Browse files Browse the repository at this point in the history
This does not work... This fixes building on Mac OS X/Darwin.
  • Loading branch information
rototor committed Dec 22, 2014
1 parent 1bfde72 commit 4d8fa64
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 4d8fa64

Please sign in to comment.