#16149: sage-env exports empty CXXFLAGS
---------------------------------------+------------------------
       Reporter:  leif                 |        Owner:
           Type:  defect               |       Status:  new
       Priority:  critical             |    Milestone:  sage-6.2
      Component:  scripts              |   Resolution:
       Keywords:  CFLAGS MPIR C++ ABI  |    Merged in:
        Authors:                       |    Reviewers:
Report Upstream:  N/A                  |  Work issues:
         Branch:                       |       Commit:
   Dependencies:                       |     Stopgaps:
---------------------------------------+------------------------

Comment (by leif):

 I'd suggest to replace the above with at least
 {{{
 #!sh
 if [ "${CFLAGS+set}" = set ] && [ -z "$CXXFLAGS" ]; then
     export CXXFLAGS="$CFLAGS"
 fi
 }}}
 which only sets (and exports) `CXXFLAGS` in case `CFLAGS` are set (but
 probably to `""`) and `CXXFLAGS` are empty.

 Or only use `CFLAGS` if they're really non-empty by adding `&& [ -n
 "$CFLAGS" ]` or replacing `[ "${CFLAGS+set}" = set ]` by the former.

--
Ticket URL: <http://trac.sagemath.org/ticket/16149#comment:1>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to