From 57b3384a98660d39d99d1f98b887a03413319dee Mon Sep 17 00:00:00 2001 From: Keang Date: Tue, 8 Jan 2019 13:35:58 +1100 Subject: [PATCH] Fix newer GCC compilation error --- ext/cld/extconf.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/cld/extconf.rb b/ext/cld/extconf.rb index 8f638e6..e79dee8 100644 --- a/ext/cld/extconf.rb +++ b/ext/cld/extconf.rb @@ -27,6 +27,9 @@ "internal/cld_generated_score_quad_octa_0122_2.o", "thunk.o"] +# Prevents issues compiling with newer GCC versions +$defs.push("-std=c++98") + if have_library('stdc++') create_makefile('libcld2') end @@ -37,4 +40,4 @@ CLEANOBJS := $(CLEANOBJS) internal/*.#{CONFIG["OBJEXT"]} EOS -end \ No newline at end of file +end