Ticket #5847: trac_5847-module_list-fix_execstack-sagelib-rebased_to_4.7.1.alpha4.patch

File trac_5847-module_list-fix_execstack-sagelib-rebased_to_4.7.1.alpha4.patch, 1012 bytes (added by leif, 8 years ago)

Sage library patch. Fixes 'execstack' issue on Fedora with GCC 4.6.0. Rebased to Sage 4.7.1.alpha4. (Cf. #11377)

  • module_list.py

    # HG changeset patch
    # User Leif Leonhardy <not.really@online.de>
    # Date 1309863032 -7200
    # Node ID 556a3825c961b6871451652dede6ec3742705482
    # Parent  8532a2ad1e558cbc91ddaaa6b7cc79956dd1e8ba
    #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.)
    
    (Rebased patch for Sage 4.7.1.alpha4 / #11377)
    
    diff -r 8532a2ad1e55 -r 556a3825c961 module_list.py
    a b  
    568568    Extension('sage.libs.libecm',
    569569              sources = ['sage/libs/libecm.pyx'],
    570570              libraries = ['ecm', 'gmp'],
     571              extra_link_args = uname_specific("Linux", ["-Wl,-z,noexecstack"],
     572                                                        []),
    571573              depends = [SAGE_INC + "ecm.h"]),
    572574     
    573575    Extension('sage.libs.mwrank.mwrank',