# HG changeset patch
# User Jeroen Demeyer <jdemeyer@cage.ugent.be>
# Date 1347281432 -7200
# Node ID 419d3d398d99cb97f77ca14cdba779c3db9c7fed
# Parent 4ff871b029a8e117b512828ced50a71842799000
Set CPATH in sage-env
diff --git a/spkg/bin/sage-env b/spkg/bin/sage-env
a
|
b
|
|
236 | 236 | |
237 | 237 | # Mac OS X-specific setup |
238 | 238 | if [ `uname` = "Darwin" ]; then |
239 | | # For a framework Python build on OS X, Python's bin directory is not local/bin |
240 | | PATH="$SAGE_LOCAL/Frameworks/Python.framework/Versions/2.5/bin:$PATH" && export PATH |
241 | | |
242 | 239 | # set MACOSX_DEPLOYMENT_TARGET -- if set incorrectly, this can |
243 | 240 | # cause lots of random "Abort trap" issues on OSX. see trac |
244 | 241 | # #7095 for an example. |
… |
… |
|
247 | 244 | export MACOSX_DEPLOYMENT_TARGET |
248 | 245 | fi |
249 | 246 | |
250 | | if [ "$LIBRARY_PATH" != "" ]; then |
251 | | LIBRARY_PATH="$SAGE_LOCAL/lib/:$LIBRARY_PATH" |
252 | | else |
253 | | LIBRARY_PATH="$SAGE_LOCAL/lib/" |
254 | | fi |
255 | | export LIBRARY_PATH |
| 247 | # Compile-time path for libraries. This is the equivalent of |
| 248 | # adding the gcc option -L $SAGE_LOCAL/lib. |
| 249 | [ -z "$LIBRARY_PATH" ] || LIBRARY_PATH="${LIBRARY_PATH}:" |
| 250 | export LIBRARY_PATH="${LIBRARY_PATH}$SAGE_LOCAL/lib" |
256 | 251 | |
| 252 | # Compile-time path for include files. This is the equivalent of |
| 253 | # adding the gcc option -I $SAGE_LOCAL/include. |
| 254 | [ -z "$CPATH" ] || CPATH="${CPATH}:" |
| 255 | export CPATH="${CPATH}$SAGE_LOCAL/include" |
| 256 | |
| 257 | # For PARI/GP |
257 | 258 | GP_DATA_DIR="$SAGE_LOCAL/share/pari" && export GP_DATA_DIR |
258 | 259 | GPHELP="$SAGE_LOCAL/bin/gphelp" && export GPHELP |
259 | 260 | GPDOCDIR="$SAGE_LOCAL/share/pari/doc" && export GPDOCDIR |