<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 23, 2021 at 8:32 PM Barry Smith <<a href="mailto:bsmith@petsc.dev">bsmith@petsc.dev</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div><br></div>   ./configure other arguments LIBS="-lxxx" <div><br></div></div></blockquote><div><br></div><div>Ah yes. </div><div>This was the first thing that I tried and it failed. I tried CUDALIBS or something that does not exist, to avoid adding my own "-Lyyy -lxxx". No luck so I added -L to FLAGS. That worked, but LIBS is the right place to put this.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div></div><div>  This should work. Send configure.log to <a href="mailto:petsc-maint@mcs.anl.gov" target="_blank">petsc-maint@mcs.anl.gov</a><div><br></div><div><br><div><br><blockquote type="cite"><div>On Apr 23, 2021, at 6:33 PM, Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:</div><br><div><div dir="ltr">How would I add a CUDA library that is in the CUDA library directory? That is just add -lxxx to the link line. I tried LIBS=-lxxx and that failed in configure.<div>Mark</div></div>
</div></blockquote></div><br></div></div></div></blockquote></div></div>