aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/Makefile
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-04-05 13:54:14 +0200
committerjaseg <code@jaseg.net>2021-04-05 13:57:40 +0200
commit5d1bcd7fc0bff49c42783bff4d549e23a79cf34f (patch)
treeffa50fc05adeebd1a2fdba927eebf0846c195d1d /svg-flatten/Makefile
parent3288fb8345c07b4ca0deff82805d330f7d80bee7 (diff)
downloadgerbolyze-5d1bcd7fc0bff49c42783bff4d549e23a79cf34f.tar.gz
gerbolyze-5d1bcd7fc0bff49c42783bff4d549e23a79cf34f.tar.bz2
gerbolyze-5d1bcd7fc0bff49c42783bff4d549e23a79cf34f.zip
Add MacOS supportv2.0.7
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: