Am 30.10.07, 07:44 -0700 schrieb Michael Sweet:
> Kai-Uwe Behrmann wrote:
> > Is there a special reason to build FLTK with rpath. I saw it in the
> > configure.in script.
>
> Yes, otherwise shared library builds won't work when installed in
> another location. In particular, since we pull the shared libfltk
> >from ../src when we make the programs, if there is a
> ../src/libfltk.so.2 library relative to the current directory when
> you run the app, libdl.so may will the wrong libfltk.so.2 without
> -rpath. On other OS's, their run-time linkers will not even try
> using ${libdir}/libfltk.so.2 without -rpath.
Hmm, alternatively the libtool stuff would be needed with the
LD_LIBRARY_PATH=../src:xxx style shell scripts?
Is it save to assume that a relinking at installation time would make the
-rpath obsolete? Thus local versions stay functional, and installed
versions dont need -rpath being specified. Of course, the libs must be
installed in a ld visible place - i.e. LD_LIBRARY_PATH or /usr/lib ...
I think even MinGW should work this way. For cross compilation I'd go with
a --with-rpath configure option.
thanks,
Kai-Uwe Behrmann
--
developing for colour management
www.behrmann.name + www.oyranos.org
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk