diff options
Diffstat (limited to 'svg-flatten')
-rw-r--r-- | svg-flatten/Makefile | 6 | ||||
-rw-r--r-- | svg-flatten/include/gerbolyze.hpp | 1 |
2 files changed, 6 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: diff --git a/svg-flatten/include/gerbolyze.hpp b/svg-flatten/include/gerbolyze.hpp index aea8748..ed93bbc 100644 --- a/svg-flatten/include/gerbolyze.hpp +++ b/svg-flatten/include/gerbolyze.hpp @@ -21,6 +21,7 @@ #include <map> #include <iostream> #include <string> +#include <array> #include <pugixml.hpp> #include "svg_pattern.h" |