Skip to content

Commit

Permalink
Merge pull request #87 from rototor/fix_building_static_darwin
Browse files Browse the repository at this point in the history
Dont try to build a real static binary on Mac OS X/Darwin
  • Loading branch information
mgreter committed Dec 22, 2014
2 parents 1bfde72 + 4d8fa64 commit 65d2bdb
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 65d2bdb

Please sign in to comment.