Because the order of the libraries can be important, it is difficult for 
./configure to remove unneeded duplicates automatically.

   You can manually remove duplicates by editing 
$PETSC_ARCH/lib/petsc/conf/petscvariables after running ./configure

   Barry



> On May 13, 2024, at 7:47 AM, Runjian Wu <[email protected]> wrote:
> 
> This Message Is From an External Sender
> This message came from outside your organization.
> Hi all,
> 
> After I compiled PETSc, I found some duplicated libs in the variable 
> PETSC_EXTERNAL_LIB_BASIC, e.g., -lm, -lgfortran -lstdc++.  I am curious how 
> it happened and how to remove the duplicates?
> 
> Thanks,
> 
> Runjian Wu

Reply via email to