On Mon, Oct 28, 2013 at 02:00:25PM +0100, Mattias Gaertner wrote: > > On Tue, Oct 15, 2013 at 01:52:44PM -0300, silvioprog wrote: > > > I'm trying to compila Lazarus in Linux Mint 15 > > > (http://www.linuxmint.com/), > > > but: > > > > Try adding > > -XLAcairo=cairo,cairo-gobject > > That does not even work with: > > {$mode objfpc}{$H+} > uses cairo; > begin > end.
It was the workaround for the opposite problem; declared to be in cairo-gobject, but really in libcairo. But in this case there were two issues: 1. the -XLA solution is for the opposite problem (a $linklib cairo-object that you want to kill), while the problem requires a cairo-gobject to be linked. 2. for some reason a versioned lib (.so.2) was used in this header. That might have prevented -XLA even if it was fixable with it. > Should I create a bug report? No, there already is one, http://bugs.freepascal.org/view.php?id=25191 Quick workaround till a more permanent solution is devised : use smartlinking. Compile at least gtk2 FPC pkg with -CX, and then link with -XX > It seems -XLA exists in the fpc sources but is neither documented nor > listed in fpc -h. XLO/XLA has been documented in the buildfaq since 2.0.4 times. Basically it is a simple system for substitutions and prioritization on the combined list of $linklibs for systems with flat linker namespaces. (read: linux and *BSD) -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
