Sage should not blindly link to locally installed libntl.a
(not compiled with -fPIC by default)
#38255
Open
2 tasks done
Labels
Environment
Steps To Reproduce
I had a locally installed NTL compiled from sources with default options. While Sage tries to link libntl.a, it fails with a few complaints like
Config log
Relevant part from
config.log
:Package logs
No response
Additional Information
To overcome the issue I had to go to NTL sources, manually add
-fPIC
compiler option to itsmakefile
, recompile and reinstall my locallibntl.a
. However, I think this issue should have an automated solution - e.g., better testing of possibility for linking.Also, while Sage says
configure:23219: will use system package and not install SPKG ntl
, it uses not the system-provided package (which would be/usr/lib/x86_64-linux-gnu/libntl.a
) but a locally-installed one (/usr/local/lib/libntl.a
) instead.Checklist
The text was updated successfully, but these errors were encountered: