On Sun, Aug 25, 2019 at 11:58 PM François Bissey <
frp.b...@gmail.com> wrote:
>
> Good catch. Yes, your explanation makes complete sense. Which means we have
> to make sure the right library path for pari is included in front of
> -lpari.
>
> Further examination may be required to figure out the presence of `-L/lib`.
> First it would be interesting to see if it appears in other packages that don’t
> use system package. If it does we are global variable pollution.
> If not it’s probably just something in eclib.
It's a subtle bug I introduced in spkg-config of eclib, which is due
to non-uniformity of
values to be passed to ./configure of eclib via --with-FOO=, for FOO
in ntl, pari, flint.
Namely, --with-flint="" results in -L/lib getting into FLINT_LDFLAGS,
whereas --with-flint=yes
does not do this.
By non-uniformity I mean that
configure.ac of ecl has
case "$with_pari" in
""|yes)
and
case "$with_ntl" in
""|yes)
whereas for flint it has
does different things for "" and for yes.
For withval=="" it does add FLINT_LDFLAGS="-L$withval/lib", but
for withval==yes it does not touch FLINT_LDFLAGS=
(Naturally, if one sets up such a pitfall, sooner or later it had to work ;-))
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-devel/4CDEDCD3-6CDB-412A-93A9-5C5F823067EE%40gmail.com.