Hi everybody!
I tried to compile lapack 3.4.0 from sources using gfortran-4.6 and cmake on Suse Linux 12.1. Since I intend to use lapack in a threaded environment, I pass -frecursive as additional compiler flag, in order to make all static arrays threadsafe. This is basically the same problem described by an earlier post ( viewtopic.php?f=2&t=1930 ), and as far as I know its the only suitable way to ensure that concurrent invocation of fortran routines using static arrays can be made safe.
However, this seemingly causes the test cases to be compiled with the same compiler option, which in turn causes stack overflows: The test cases 78-93 fail with segmentation faults, probably due to stackoverflows. This problem does not occur, when omitting the -frecursive flag.
I would like to assert my assumption, that this is a problem concerning the test cases only. Is there a way to specify different compiler flags for the test cases than for the library?
Regards
Claas

