File: 0005-Fix-FTBFS-ruby3.1.patch

package info (click to toggle)
ruby-kyotocabinet 1.34-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 488 kB
  • sloc: cpp: 3,501; ruby: 1,580; sh: 15; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 500 bytes parent folder | download | duplicates (2)
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}"