Ticket #5847: trac_5847-module_list-fix_execstack-sagelib.patch

File trac_5847-module_list-fix_execstack-sagelib.patch, 980 bytes (added by leif, 8 years ago)

Sage library patch. Fixes 'execstack' issue on Fedora with GCC 4.6.0. Based on Sage 4.7.rc2.

  • module_list.py

    # HG changeset patch
    # User Leif Leonhardy <not.really@online.de>
    # Date 1307043111 -7200
    # Node ID e7b1b631a38756bb37aa5edc7a0e31ff10eaa86a
    # Parent  fb00ec75853019eb9799fd863b193fe82ee97c74
    #5847: Add 'noexecstack' flag when linking libecm extension module on Linux.
    
    (Not doing so caused trouble on a SkyNet Fedora machine with Sage 4.7.1.alpha1
     and GMP-ECM 6.3.p2 from #5847, GCC 4.6.0; didn't occur previously.)
    
    diff -r fb00ec758530 -r e7b1b631a387 module_list.py
    a b  
    561561    Extension('sage.libs.libecm',
    562562              sources = ['sage/libs/libecm.pyx'],
    563563              libraries = ['ecm', 'gmp'],
     564              extra_link_args = uname_specific("Linux", ["-Wl,-z,noexecstack"],
     565                                                        []),
    564566              depends = [SAGE_ROOT + "/local/include/ecm.h"]),
    565567     
    566568    Extension('sage.libs.mwrank.mwrank',