dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #01886
Re: Loading shared libraries
On Thu, Feb 09, 2006 at 08:13:32AM -0600, Anders Logg wrote:
> This seems like a good idea. Since we are always building the demos
> against an installed version of DOLFIN, we know the location of the
> shared library at compile-time, so we might as well include the
> location in the executable. The problem would be if we were to
> distribute precompiled executables separate from the library. Then we
> would need to rely on finding the libraries somewhere in
> LD_LIBRARY_PATH. But we don't so this should be ok.
>
> So it would work to just modify dolfin-config?
>
> /Anders
>
We would also need to modify the makefiles. Right now we use the same
command for compiling and linking. We would need to split this up:
--compiler:
libtool --compile g++
--linker:
libtool --link g++
Or something like that.
Johan
References