Description: Compile as c++11 source
 re2 since 20160301 uses C++11 atomics
Author: Stefano Rivera <stefanor@debian.org>
Bug-Debian: https://bugs.debian.org/820937
Forwarded: https://github.com/janestreet/re2/pull/12

--- ocaml-re2-113.00.00+dfsg.orig/src/Makefile
+++ ocaml-re2-113.00.00+dfsg/src/Makefile
@@ -1,5 +1,5 @@
 CXX?=g++
-CXXFLAGS += -I $(RE2_HOME)/re2
+CXXFLAGS += -I $(RE2_HOME)/re2 -std=c++11
 
 all: libre2_stubs.a dllre2_stubs.so
 
@@ -7,7 +7,7 @@ dllre2_stubs.so libre2_stubs.a: stubs.o
 	ocamlmklib -oc re2_stubs stubs.o -lre2 -lstdc++
 
 stubs.o: stubs.cpp stubs.h util.h enum_x_macro.h
-	$(CXX) -O2 -DPIC -fPIC -g -pipe -DCAML_NAME_SPACE -Wall -I. -I../../../include \
+	$(CXX) $(CXXFLAGS) -O2 -DPIC -fPIC -g -pipe -DCAML_NAME_SPACE -Wall -I. -I../../../include \
 	-I$(ocaml-version-selected-include-path) -c stubs.cpp
 
 #stubs.o: %.o: %.cpp %.h
