Skip to Content.
Sympa Menu

forum - [abinit-forum] How to make a statically linked abinis executable for linux?

forum@abinit.org

Subject: The ABINIT Users Mailing List ( CLOSED )

List archive

[abinit-forum] How to make a statically linked abinis executable for linux?


Chronological Thread 
  • From: Rob <spamrefuse@yahoo.com>
  • To: abinit <forum@abinit.org>
  • Subject: [abinit-forum] How to make a statically linked abinis executable for linux?
  • Date: Sat, 23 Jan 2010 06:08:51 -0800 (PST)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=EURpJa3WfpPgmBuUVksGgmSBOn0sK8sLtsNx9I37pKmz61c5OSrVPb320jNUiFCUl9NqPfVEXcYxpphI2laMXhPBGSNbJrJ+CTGCIfE70oczofWdB+qc+sUU55YzUXtwFvx0lgvTjuXo7Ope39pVaaZpVIbQBYWL9PcGd3qq/QM=;


Hi,

I want to create a static executable of abinis on a Fedora Linux
system. Can somebody tell me how to do this?

I have tried with the environment variables:

FC=gfortran -static-libgfortran
FCFLAGS=-static-libgfortran

and then do a ./configure and make, but I still get:

$ ldd src/98_main/abinis
linux-vdso.so.1 => (0x00007fff0ddff000)
libm.so.6 => /lib64/libm.so.6 (0x000000323de00000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003248a00000)
libc.so.6 => /lib64/libc.so.6 (0x000000323da00000)
/lib64/ld-linux-x86-64.so.2 (0x000000323d600000)


Indeed, the link to libgfortran is now static.

Especially the links against linux-vdso.so.1 and libgcc_s.so.1 need
to be static.

Thanks,
Rob.






Archive powered by MHonArc 2.6.16.

Top of Page