ext/cld/extconf.rb in cld2-1.0.2 vs ext/cld/extconf.rb in cld2-1.0.3
- old
+ new
@@ -25,10 +25,12 @@
"internal/cld2_generated_deltaoctachrome0122.o",
"internal/cld2_generated_distinctoctachrome0122.o",
"internal/cld_generated_score_quad_octa_0122_2.o",
"thunk.o"]
-create_makefile('libcld2')
+if have_library('stdc++')
+ create_makefile('libcld2')
+end
# to clean up object files under internal subdirectory.
open('Makefile', 'a') do |f|
f.write <<EOS
\ No newline at end of file