1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
Description: Pass -x c++ to force gcc to compile the test program as C++ and have_header to work reliably
Author: Nilesh Patra <nilesh@debian.org>
Last-Update: 2022-12-28
--- a/extconf.rb
+++ b/extconf.rb
@@ -8,7 +8,7 @@
kcldflags = `pkg-config --libs-only-L kyotocabinet`.chomp
RbConfig::CONFIG["CPP"] = "g++ -E"
-$CFLAGS = "-I. #{kccflags} -Wall #{$CFLAGS} -O2"
+$CFLAGS = "-I. #{kccflags} -Wall #{$CFLAGS} -O2 -x c++"
$LDFLAGS = "#{$LDFLAGS} -L. #{kcldflags}"
$libs = "#{$libs} #{kclibs}"
|