From fe35dec1e51dcebca00250a691afed3954b34193 Mon Sep 17 00:00:00 2001 From: Luka Dornhecker Date: Mon, 19 Nov 2018 10:51:03 +0100 Subject: [PATCH] fix: add -Wno-narrowing to compiler flags so it compiles on modern systems --- ext/cld/extconf.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/cld/extconf.rb b/ext/cld/extconf.rb index 8500a27..0537579 100644 --- a/ext/cld/extconf.rb +++ b/ext/cld/extconf.rb @@ -1,4 +1,7 @@ #require 'mkmf' #create_makefile('cld/cld') +ENV['CFLAGS'] = ENV['CFLAGS'].to_s + ' -Wno-narrowing' +ENV['CXXFLAGS'] = ENV['CXXFLAGS'].to_s + ' -Wno-narrowing' + system "./configure --prefix=#{Dir.pwd}" unless File.exists?('Makefile')