Page 1 of 1

atompaw configure test command line ordering

Posted: Sat Mar 05, 2011 12:11 pm
by mverstra
in the present 6.7.1 inclusion of atompaw, there is a test for libxc presence. With my sequential compiler (still xlf 12.1 suse linux 64 bits), the test fails although the libxc is present, because the conftest_cpp.f90 is at the end of the command line, after the -L/path -lxc

for the parallel compiler, for some reason, this doesn't happen: the -lxc is in the LDFLAGS, instead of the LIBS environment variable (which is the only one placed after the source file in atompaw configure).

The order should somehow be forced - the libs should come afterwards of course...

Matthieu

Re: atompaw configure test command line ordering  [SOLVED]

Posted: Sat Mar 05, 2011 7:20 pm
by mverstra
Correction: the culprit is the wrapper for my fc, which systematically puts the source file at the end of the command line, even when it is used as a linker - what a moron.

I propose to change the wrap-fc so it _always_ puts the cpp preprocessed file just after $FC. Simple, and no reason not to do it.

good - this vindicates the atompaw configure script.

Cheers

Matthieu