<div dir="ltr">I don't understand the separation of concerns for the configure variables LDFLAGS LIBS<div><br></div><div>Also, are LDFLAGS for the shared linker only, or for creating the final executable</div><div>How one can specify flags for the shared linker that are not used for creating the dynamic executable (and viceversa)?</div><div><br></div><div>This is because, with Cray wrappers, we need to pass LDFLAGS=-dynamic at configure time.</div><div>Then, when configuring HYPRE, LDFLAGS are passed and used for the shared linker, resulting in an error when creating libHYPRE.so</div><div><br></div><div>cc -shared -o libHYPRE.so ...a bunch of .o files.... ...libraries.... -dynamic<br clear="all"><div><br></div><div>The -dynamic at the end makes cc think it is creating an executable,  and fail for missing main.</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Stefano</div></div></div>