Skip to Content.
Sympa Menu

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

forum@abinit.org

Subject: The ABINIT Users Mailing List ( CLOSED )

List archive

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


Chronological Thread 
  • From: Alain Jacques <ajs.jacques@gmail.com>
  • To: forum@abinit.org
  • Subject: Re: [abinit-forum] How to make a statically linked abinis executable for linux?
  • Date: Sat, 23 Jan 2010 20:13:44 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=ket9fdcu/aSZcB1e+9AIHJAYly3xM2MdNRRJ+a7ydt9Dg1Kt90hTHMi5/cHaiyeFkx 1VjQ2eWpCkdELvarfYhyEfqbA8c6USOQIDeXDCaHqeAnIfbkB+uIQQ5OeyglygIoAubr T1jpw+XgTIJPFM11J7/vBzbkZINlDiES9ADOQ=

On Sat, Jan 23, 2010 at 06:08:51AM -0800, Rob wrote:
>
> 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.
>
>
>

Hi Rob,

What about trying with LDFLAGS=-static and let configure adjust FC and
FCFLAGS?

Alain




Archive powered by MHonArc 2.6.16.

Top of Page