The static flag should go into LDFLAGS or LIBS, not CFLAGS.
Also, for libtool to interpret it correctly, it'll need to be "--static", not "-static" (double dash instead of single dash).
-- Pavan
From: Doha Ehab
Reply-To: "discuss@mpich.org"
Date: Tuesday, August 11, 2015 at 11:24 AM
To: "discuss@mpich.org"
Subject: Re: [mpich-discuss] static building of mpich
No , but after I did make and make install I checked whether it was statically built using the following command :
file bin/mpiexecmpiexec: symbolic link to `mpiexec.hydra'
Then I typed
file bin/mpiexec.hydrampiexec.hydra: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0xb4510fb70ac8047d9028dbafe2d43848140fe894, not stripped
I don't understand why it is dynamically linked and not statically linked
On Mon, Aug 10, 2015 at 6:13 AM, Balaji, Pavan <balaji@anl.gov> wrote:
Did you do make and make install?
-- Pavan
From: Doha Ehab
Reply-To: "discuss@mpich.org"
Date: Sunday, August 9, 2015 at 7:24 PM
To: "discuss@mpich.org"
Subject: [mpich-discuss] static building of mpich
Hello,i'm trying to cross compile mpich , I have extracted mpich-3.1.3 the I created a folder name build inside it . In order to statically build mpich I used the following commands:
export CC="/home/doha/buildroot-2015.02/output/host/usr/bin/arm-linux-gcc"export AR="/home/doha/buildroot-2015.02/output/host/usr/bin/arm-linux-ar"export CFLAGS="-march=armv5te -static -I/home/doha/buildroot-2015.02/output/host/usr/include/"
export LDFLAGS="-L/home/doha/buildroot-2015.02/output/host/usr/lib/"
cc=/home/doha/buildroot-2015.02/output/host/usr/bin/arm-linux-gcc ./configure --prefix=/home/doha/mpich-3.1.3/build/ --host=arm-linux --disable-shared --with-pm=hydra --with-device=ch3:nemesis --disable-fortran
but nothing appears in the build folder while it shows no errors on the terminal
_______________________________________________
discuss mailing list discuss@mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss
_______________________________________________
discuss mailing list discuss@mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss