[petsc-dev] [Bitbucket] Pull request #375: Pass LDFLAGS down to GNUPackage externalpackages. (petsc/petsc)

Satish Balay balay at mcs.anl.gov
Mon Oct 12 22:01:27 CDT 2015


On Mon, 12 Oct 2015, Barry Smith wrote:

> 
> > On Oct 12, 2015, at 3:34 PM, Satish Balay <balay at mcs.anl.gov> wrote:
> > 
> > On Mon, 12 Oct 2015, Barry Smith wrote:
> > 
> >>> We currently don't pass in LDFLAGS - but we can do that with the patch
> >>> I mentioned.
> >> 
> >>  Ok, pass down the LDFLAGS but ONLY if the user provided LDFLAGS otherwise we should not be passing in a LDFLAGS="'" to the sub packages
> >> 
> > 
> > Why the 'only'? What would be the problem with passing LDFLAGS=""?
> 
>    Because you don't know how each external package will process a LDFLAGS=""?   For example if LDFLAGS is passed they may just use it and if it is not passed they may figure out themselves what to use for linker flags. By passing in a "" you would be preventing them from doing their usual "figuring out" and thus they may get into a state that doesn't work.

We don't apper to do this for any other option for externalpackages. I
guess it won't do any harm.

https://bitbucket.org/petsc/petsc/commits/551613189ab3671d5fcf06a713d274606ae0c569

Pushed and merged to next.

Satish

> 
>   Barry
> 
> > 
> > I've run all the nightlybuilds with the broken next with my patch -
> > which I think effectively does LDFLAGS="" - and the build go through
> > without problems.
> > 
> > Satish
> > 
> 
> 




More information about the petsc-dev mailing list