|
From: Hans-Bernhard B. <HBB...@t-...> - 2010-10-07 20:55:44
|
On 07.10.2010 22:07, Juhász Péter wrote: > Now I haven't delved into the innards of the pdfcairo terminal driver, ... not to mention the innards of the cairo library, and the libraries used by that, etc. This Cairo stuff carries around _way_ more code than traditional gnuplot terminal drivers did. > A not entirely unrelated question: how do I compile gnuplot with > profiling? I tried giving CFLAGS="-g -pg" to the configure script, but > the gmon.out file was not there after running gnuplot. You need to get the -pg into the LDFLAGS, too. (And profiling without the usual -O2 would be a futile exercise...): make CFLAGS='-g -O2 -pg' CXXFLAGS='-g -pg' (Ordinarily, the CFLAGS would be used in the link, too, but we use g++ to link, thus the CXXFLAGS). |