From: Yusuke ENDOH Date: 2009-11-02T12:26:37+09:00 Subject: [ruby-core:26478] Re: Building with gcov Hi, 2009/11/2 Aaron Patterson : > Does anyone have any pointers for building ruby with gcov? I see that > Yusuke has done it before: > > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/33258 > > But I am having problems. I run configure like this: > > $ CFLAGS='-fprofile-arcs -ftest-coverage' LIBS=-lgcov ./configure How about CFLAGS="-fprofile-arcs -ftest-coverage" \ DLDFLAGS="-Wl,-whole-archive -lgcov -Wl,-no-whole-archive" \ ./configure ? -- Yusuke ENDOH