You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In sage-env, we meanwhile add (more precisely, append) ${SAGE_LOCAL}/include to CPATH, and ${SAGE_LOCAL}/lib to LIBRARY_PATH.
Besides that this is non-portable, or rather a GCC feature, it is not equivalent to adding / prepending -I${SAGE_LOCAL}/include to CPPFLAGS/CFLAGS/CXXFLAGS and -L${SAGE_LOCAL}/lib to LDFLAGS.
First of all, search paths / folders specified on the command lineprecede all others, and second, those specified through CPATH, LIBRARY_PATH etc. are not necessarily searched before system folders.
This currently leads to problems with e.g. readline and R (which doesn't support configuring with --with-readline=<prefix>, but just =yes or =no), where adding Sage's directories was dropped from spkg-install.
In
sage-env
, we meanwhile add (more precisely, append)${SAGE_LOCAL}/include
toCPATH
, and${SAGE_LOCAL}/lib
toLIBRARY_PATH
.Besides that this is non-portable, or rather a GCC feature, it is not equivalent to adding / prepending
-I${SAGE_LOCAL}/include
toCPPFLAGS
/CFLAGS
/CXXFLAGS
and-L${SAGE_LOCAL}/lib
toLDFLAGS
.First of all, search paths / folders specified on the command line precede all others, and second, those specified through
CPATH
,LIBRARY_PATH
etc. are not necessarily searched before system folders.This currently leads to problems with e.g. readline and R (which doesn't support configuring with
--with-readline=<prefix>
, but just=yes
or=no
), where adding Sage's directories was dropped fromspkg-install
.To test this, try for example
where
$CC
is the compiler / GCC of your choice (e.g. justgcc
).Component: build
Keywords: CPATH LIBRARY_PATH SAGE_LOCAL -I -L sage-env search directories paths
Issue created by migration from https://trac.sagemath.org/ticket/14709
The text was updated successfully, but these errors were encountered: