diff --git a/Makefile b/Makefile
index 0e641296029e7ef8e5d91fb6a30ada2d996d261d..59f055b226f61592106476b17da02594d42b627c 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,10 @@ ifneq ($(defines),standard)
 	CXXFLAGS+=-D $(subst $(COMMA), -D ,$(defines))
 endif
 
+ifneq ($(findstring PUGIXML_NO_EXCEPTIONS,$(defines)),)
+	CXXFLAGS+=-fno-exceptions
+endif
+
 OBJECTS=$(SOURCES:%=$(BUILD)/%.o)
 
 all: $(EXECUTABLE)