[Dune] Cray C++ compiler for Dune?

Eike Mueller E.Mueller at bath.ac.uk
Mon Jan 23 19:41:47 CET 2012


Hi Markus,

thanks a lot, this did the trick for me. As I'm using version 2.1.1 of 
DUNE, setting DUNE_LDFLAGS='-all-static' is enough. I'm now using the 
following options to compile with gcc 4.6.1:

AUTOGEN_FLAGS=
CONFIGURE_FLAGS="DUNE_LDFLAGS='-all-static' CC='cc' CXX='CC' 
CFLAGS='-O2' FFLAGS='-O2' FCFLAGS='-O2' CXXFLAGS='-DNDEBUG -O2' FC='ftn' 
--enable-static --disable-shared 
--prefix='/home/n02/n02/eike/work/Library/Dune' --disable-documentation 
--with-alugrid='/home/n02/n02/eike/work/Library/ALU' --enable-parallel"
MAKE_FLAGS=

Did you use gcc on JuGene or the IBM compiler?

Eike

Markus Blatt wrote:
> Hey Eike,
> 
> if want to link statically, you might find help in my Blog post:
> http://www.dr-blatt.de/blog/2011/11/18/forcing-static-linkage-c-binaries-and-libraries-autoconfautomakelibtool/
> 
> I hope that helps.
> 
> Markus
> 
> On Fri, Jan 20, 2012 at 06:51:35PM +0000, Eike Mueller wrote:
>> Dear dune-list,
>>
>> thank you very much for all your replies. I have now at least
>> managed to compile Dune (with ALUGrid support) using gcc on Hector.
>>
>> However, it only worked when I used dynamic linking
>> (LDFLAGS='-dynamic' in CONFIGURE_FLAGS), otherwise I end up with
>> this error in the config.log of dune-grid (dune-common compiled
>> without -dynamic. I only hit the problem in dune-grid):
>>




More information about the Dune mailing list