aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'svg-flatten/Makefile')
-rw-r--r--svg-flatten/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/svg-flatten/Makefile b/svg-flatten/Makefile
index 25c8048..5f22a59 100644
--- a/svg-flatten/Makefile
+++ b/svg-flatten/Makefile
@@ -66,7 +66,11 @@ $(BUILDDIR)/%.o: %.cpp
$(BUILDDIR)/$(TARGET): $(SOURCES:%.cpp=$(BUILDDIR)/%.o)
@mkdir -p $(dir $@)
- $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ -Wl,--start-group $^ -lstdc++fs -Wl,--end-group
+ if [ $$(uname -s) = "Darwin" ]; then \
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^; \
+ else \
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ -Wl,--start-group $^ -lstdc++fs -Wl,--end-group; \
+ fi
.PHONY: install
install: