Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 17a471f

Browse files
committed
always set CXXFLAGS=-g -O3; always build/link to Giac if available
1 parent 431bd36 commit 17a471f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build/pkgs/pynac/spkg-install

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ if [ "$SAGE_LOCAL" = "" ]; then
1313
exit 1
1414
fi
1515

16+
CXXFLAGS="-O2 -g"
17+
1618
if [ "$SAGE64" = "yes" ]; then
1719
echo "Building a 64-bit version of pynac"
18-
CXXFLAGS="-m64 -O2 -g"; export CXXFLAGS
20+
CXXFLAGS="-m64 $CXXFLAGS"; export CXXFLAGS
1921
LDFLAGS="-m64 $LDFLAGS"; export LDFLAGS
2022
CC="$CC -m64" ; export CC
2123
CXX="$CXX -m64" ; export CXX
@@ -33,7 +35,7 @@ build_pynac()
3335
{
3436
cd ${PYNACDIR}
3537
PKG_CONFIG_PATH=${SAGE_LOCAL}/lib/pkgconfig; export PKG_CONFIG_PATH
36-
./configure --disable-static --prefix=${SAGE_LOCAL} --with-giac=no --libdir="$SAGE_LOCAL/lib"
38+
./configure --disable-static --prefix=${SAGE_LOCAL} --libdir="$SAGE_LOCAL/lib"
3739
$MAKE
3840
if [ $? -ne 0 ]; then
3941
echo "Error building pynac."

0 commit comments

Comments
 (0)