Closed dpblnt closed 10 months ago
with this patch I was able to build
diff --git a/ext/cumo/extconf.rb b/ext/cumo/extconf.rb
index 63f9188..e56f732 100644
--- a/ext/cumo/extconf.rb
+++ b/ext/cumo/extconf.rb
@@ -53,6 +53,8 @@ $CXXFLAGS << " -std=c++14"
#$CFLAGS=" $(cflags) -O3 -m64 -msse2 -funroll-loops"
#$CFLAGS=" $(cflags) -O3"
$INCFLAGS = "-Iinclude -Inarray -Icuda #{$INCFLAGS}"
+$LDFLAGS << " -Wl,--allow-multiple-definition -lm -lc -lstdc++"
+
$INSTALLFILES = Dir.glob(%w[include/cumo/*.h include/cumo/types/*.h include/cumo/cuda/*.h]).map{|x| [x,'$(archdir)'] }
$INSTALLFILES << ['include/cumo/extconf.h','$(archdir)']
installing cumo-0.4.3 failed ...