[rrd-developers] RRDtool + Lua module patch
Tobias Oetiker
tobi at oetiker.ch
Tue Oct 7 06:45:53 CEST 2008
Hi Fidelis,
> > applies and compiles fine. There is one snag, when linking
> > rrd-0.0.9.so it does not seem to put the -rpath setting in place.
> >
> > this is a problem when you do not install rrdtool into a
> > non-standard location, since then rrd.so will not find librrd.so
>
> Isn't -rpath a libtool option? I didn't use libtool in my patch. I've
> started using Autotools a few weeks and haven't got to libtool yet - I'm
> still in autoconf :-). Anyway, is that the meaning of -rpath? I thought
> it just tells libtool where your library will be installed, not where to
> find others.
>
> > ...
> >
> > in the docs you may want to use INSTALL_PREFIX instead of
> > /usr/local/rrdtool-1.3.2
>
> OK.
>
> >
> > in the Makefile you are using many gcc-like options (-fPIC) this
> > will beome a problem when compiling with a non gcc compiler. Can't
> > you use libtool or at least get the relevant options from the
> > installed lua instance (perl does it this way).
>
> Unfortunately Lua doesn't have that option, but libtool is in my todo
> list. Thanks for the suggestions.
yes rpath is for this ... you may also want to look at Makefile.PL
for perl, there I change the rpath aequivalent depending on the OS
... for solaris it is -R....
cheers
tobi
> Regards
>
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900
More information about the rrd-developers
mailing list