#13348: Set CPATH in sage-env
----------------------------------+-----------------------------------------
       Reporter:  jdemeyer        |         Owner:  GeorgSWeber 
           Type:  enhancement     |        Status:  needs_review
       Priority:  major           |     Milestone:  sage-5.4    
      Component:  build           |    Resolution:              
       Keywords:                  |   Work issues:              
Report Upstream:  N/A             |     Reviewers:              
        Authors:  Jeroen Demeyer  |     Merged in:              
   Dependencies:                  |      Stopgaps:              
----------------------------------+-----------------------------------------
Description changed by jdemeyer:

Old description:

> Since we're setting `LIBRARY_PATH` in `sage-env` (which is the ''compile-
> time'' equivalent of `LD_LIBRARY_PATH`, corresponding to the compiler
> flag `-L`), we should analogously set `CPATH` to `SAGE_LOCAL/include`
> (corresponding to the compiler flag `-I`).
>
> Within Sage, `SAGE_LOCAL` effectively acts as installation prefix, so
> this is the logical thing to do.  A GCC compiled within Sage will already
> look at `SAGE_LOCAL/include` by default.

New description:

 Since we're setting `LIBRARY_PATH` in `sage-env` (which is the ''compile-
 time'' equivalent of `LD_LIBRARY_PATH`, corresponding to the compiler flag
 `-L`), we should analogously set `CPATH` to `SAGE_LOCAL/include`
 (corresponding to the compiler flag `-I`).

 Within Sage, `SAGE_LOCAL` effectively acts as installation prefix, so this
 is the logical thing to do.  A GCC compiled within Sage will already look
 at `SAGE_LOCAL/include` by default.

 This doesn't immediately change anything, but it will allow simplifying
 many `spkg-install` files by not having to care about
 `-I$SAGE_LOCAL/include` anymore.

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13348#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to