Ticket #4000: trac_4000-sunos_workaround.patch

File trac_4000-sunos_workaround.patch, 987 bytes (added by mpatel, 7 years ago)

Solaris work around

  • module_list.py

    # HG changeset patch
    # User Mitesh Patel <qed777@gmail.com>
    # Date 1286527850 25200
    # Node ID 31920330de9bc3ba753b4dbdf866bda42c7119b0
    # Parent  d03d4b47c7d6e6ecb662981ef32a79145c0f4e09
    #4000: QQ via FLINT ZZ, work around a Solaris gcc problem
    
    diff --git a/module_list.py b/module_list.py
    a b ext_modules = [ 
    13861386    Extension('sage.rings.polynomial.polynomial_rational_flint',
    13871387              sources = ['sage/rings/polynomial/polynomial_rational_flint.pyx', 'sage/libs/flint/fmpq_poly.c'],
    13881388              language = 'c++',
    1389               extra_compile_args=["-std=c99", "-D_XPG6"],
     1389              extra_compile_args=["-std=c99"] + uname_specific('SunOS', [], ['-D_XPG6']),
    13901390              libraries = ["csage", "flint", "ntl", "gmpxx", "gmp"],
    13911391              include_dirs = [SAGE_ROOT + '/local/include/FLINT/', SAGE_ROOT + '/devel/sage/sage/libs/flint/'],
    13921392              depends = [SAGE_ROOT + "/local/include/FLINT/flint.h"]),