From daeb0c89c75bb2bce32be717919b8695d05e44aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Wed, 7 May 2025 12:31:46 +1000 Subject: [PATCH] Require C++ compiler to work We need to compile c++ sources, so let's make the failure explicit. --- ext/exiv2/extconf.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/exiv2/extconf.rb b/ext/exiv2/extconf.rb index ad94b9f..4b75058 100644 --- a/ext/exiv2/extconf.rb +++ b/ext/exiv2/extconf.rb @@ -3,6 +3,9 @@ $CXXFLAGS += " -std=c++11" RbConfig::CONFIG['PKG_CONFIG'] = 'pkg-config' +puts "checking for C++ compiler" +raise "Cannot use C++ compiler" unless MakeMakefile["C++"].have_devel? + if dir_config("exiv2") == [nil, nil] pkg_config("exiv2") end