[Bonmin] how to build a completely static version version of
jtl3 at lehigh.edu
Mon Aug 7 13:32:35 EDT 2006
Hi Abhishek, Hi Pierre,
On Sun, 2006-07-30 at 16:32 -0500, Kumar Abhishek wrote:
> I am trying to build a static version of bonmin..
> The command that I use is
> ../configure -C enable_static=yes enable_shared=no build_old_libs=yes
> followed by make..
> however, looking at the output of make, it looks like libgfortran.so is
> being linked to the solver instead of libgfortran.a:
> this is part of the last line of make:
> -L/usr/lib/../lib /usr/lib/libgfortranbegin.a /usr/lib/libgfortran.so
> -lm -lgcc_s
> how can I build a completely static version that has no soft links to
> any library build in.. I want to do this because I want to run bonmin on
> a different machine where the library libgfortran is not available at
> exactly the same place (/usr/lib)
> any help regarding this will be highly appreciated...
Pierre, thanks for the tip to try
LDFLAGS = -Bstatic
LDFLAGS = -static
but this still doesn't seem to build executables that are without
dependencies to shared libraries. Here is what I get an executable that
has some shared library dependencies...
jeff at pbr:~/svn-mods/coin-Bonmin/Release/static-opt/Bonmin/src/Apps$ ldd
linux-gate.so.1 => (0xffffe000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7eee000)
liblapack.so.2 => /usr/lib/atlas/liblapack.so.2 (0xb78aa000)
libblas.so.2 => /usr/lib/atlas/libblas.so.2 (0xb75c0000)
libg2c.so.0 => /usr/lib/libg2c.so.0 (0xb7598000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb74b7000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7491000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7486000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb734d000)
Any other ideas? I'll try to manually edit the Makefile, I suppose.
Is this a question for buildtools? Should we open a ticket?
Jeff Linderoth O: 610-758-4879
Industrial and Systems Engineering jtl3 at lehigh.edu
Lehigh University www.lehigh.edu/~jtl3
More information about the Bonmin