diff --git a/re2.spec b/re2.spec index cf88bf3..cd0ca69 100644 --- a/re2.spec +++ b/re2.spec @@ -3,7 +3,7 @@ Name: re2 Version: %{shortver} -Release: 1%{?dist} +Release: 2%{?dist} Summary: C++ fast alternative to backtracking RE engines Group: System Environment/Libraries License: BSD @@ -33,7 +33,6 @@ This package contains the C++ header files and symbolic links to the shared libraries for %{name}. If you would like to develop programs using %{name}, you will need to install %{name}-devel. - %prep %setup -q -n %{name}-%{longver} @@ -42,7 +41,7 @@ you will need to install %{name}-devel. # http://groups.google.com/forum/?fromgroups=#!topic/re2-dev/bkUDtO5l6Lo # The RPM macro for the linker flags does not exist on EPEL %{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro} -CXXFLAGS="${CXXFLAGS:-%optflags} -pthread" +CXXFLAGS="${CXXFLAGS:-%optflags} -pthread -std=c++11" LDFLAGS="${LDFLAGS:-%__global_ldflags} -pthread" make %{?_smp_mflags} CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" includedir=%{_includedir} libdir=%{_libdir} @@ -70,6 +69,9 @@ make %{?_smp_mflags} shared-test %{_libdir}/pkgconfig/%{name}.pc %changelog +* Fri Apr 29 2016 Tom Callaway - 20160401-2 +- hardcode -std=c++11 for older compilers + * Fri Apr 29 2016 Tom Callaway - 20160401-1 - update to 20160401