[petsc-dev] Why do we pass -L/usr/lib ?

Jed Brown jed at jedbrown.org
Thu Nov 6 16:35:23 CST 2014


Satish Balay <balay at mcs.anl.gov> writes:
> I presume you want configure to detect/remove -L/usr/lib from all
> tests and final link line assembled by configure?
>
> But if you have the good one (libfoo.a) in /usr/lib - and the bad one
> in /opt/mpich/lib [and you wanted to pick up the good one] - then it
> will still be broken.

I understand that; it's not possible to fix given compiler search path
semantics. 

>> > And wrt --with-package-dir=/usr - if thats what the user wants to do
>> > [and not rely on compiler default search paths using --with-package=1
>> > option] - we should respect that.. [and present errors if they occur].
>> 
>> Configure never even tries linking -lmetis.
>
> I assumed wrong here. Perhaps we need the following change:
>
> -------------------
> $ git diff |cat
> diff --git a/config/BuildSystem/config/package.py b/config/BuildSystem/config/package.py
> index 7f7cd3c..342ada6 100644
> --- a/config/BuildSystem/config/package.py
> +++ b/config/BuildSystem/config/package.py
> @@ -220,7 +220,8 @@ class Package(config.base.Configure):
>    externalPackagesDir = property(getExternalPackagesDir, setExternalPackagesDir, doc = 'The directory for downloaded packages')
>
>    def getSearchDirectories(self):
>    -    '''By default, do not search any particular directories'''
>    +    '''By default, do not search any particular directories - but do check default compiler location'''
>    +    yield ''
>         return []

Or return [''].  I think we should do this.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20141107/65fa5821/attachment.sig>


More information about the petsc-dev mailing list