OK, that helped a little bit. Here is the output:
ldd lftp
libutil.so.1 => /lib/libutil.so.1 (0x40021000)
libncurses.so.5 => /lib/libncurses.so.5 (0x40024000)
libdl.so.2 => /lib/libdl.so.2 (0x40064000)
libm.so.6 => /lib/libm.so.6 (0x40068000)
libc.so.6 => /lib/libc.so.6 (0x4008a000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
file lftp
lftp: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically
linked (uses shared libs), not stripped
Obviously the static directives are not working in the compilation
progress. There must be another way to direct the formation of a static
binary. I will keep try different combinations.
On Fri, 2002-09-13 at 00:17, Nicolas Noble wrote:
> > I am trying to compile lftp for a boot cd I am making. I need to
> > complete a static build. I have tried all of the options I can think of
> > to get it to work. The executable will build and run in a normal shell.
> > When I chroot to my boot_cd directory, it says file not found when I
> > call it from the command line. I am doing a basic ./configure;make;make
> > install. These are the options I am using:
> >
> > "LDFLAGS=-static CC="gcc -static" ./configure --disable-nls \
> > --prefix=/boot_cd/static --enable-static=yes --enable-shared=no \
> > --without-libresolv --without-ssl --with-gnu-ld"
> >
> > "make" or "make LDFLAGS=-static"
> >
> > "make install"
> >
> > Can anyone suggest how to do a correct static build? I don't have a lot
> > of experience with compiler options, so I might be missing something
> > easy. Thanks
>
> Have you tried the following? If not, give here the results:
>
> ldd lftp
> file lftp
>
>
> I'm pretty sure it will be not static, but those two commands may help.
> What bugs me is that it shouldn't say "file not found" but another error
> message when it comes to a "not found" library.
>