pdupre has asked for the wisdom of the Perl Monks concerning the following question:
Because the package Math::GSL has not been updated for using gsl-2.
Thus, I installed gsl-1 in addition and I compile Math:GSL. Now, I have my own perl applications which use gsl and Math:GSL, I am trying to have only gsl-1 used.
Hence, in my Makefile.PL, I set:
LIBS => ["-lm -L$ENV{GSL_LIB} -lgsl"],
When I make perl Makefile.PL, a Makefile is generated with:
EXTRALIBS = -L/usr/local/gsl-1/lib -lgsl LDLOADLIBS = -lm -L/usr/local/gsl-1/lib -lgsl LD_RUN_PATH = /usr/local/gsl-1/lib
I though it was OK, but when I run make, a new Makefile is generated without the LIBS correct, ie.:
EXTRALIBS = -lgsl LDLOADLIBS = -lm -lgsl LD_RUN_PATH = /usr/lib
Why such a behavior ?
How can I control it ?
Thank
Patrick Dupre
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: library management in XS
by kcott (Archbishop) on Aug 06, 2016 at 12:23 UTC | |
|
Re: library management in XS
by Laurent_R (Canon) on Aug 05, 2016 at 16:51 UTC | |
by pdupre (Acolyte) on Aug 05, 2016 at 17:08 UTC | |
|
Re: library management in XS ( Math::GSL )
by Anonymous Monk on Aug 05, 2016 at 17:24 UTC | |
by pdupre (Acolyte) on Aug 05, 2016 at 17:42 UTC | |
by Anonymous Monk on Aug 05, 2016 at 17:56 UTC | |
by pdupre (Acolyte) on Aug 05, 2016 at 18:04 UTC |