xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #678: dsextras-gcc.patch

File dsextras-gcc.patch, 1.1 KB (added by Antoine Martin, 4 years ago)

patch for dsextras to support newer gcc versions

  • lib/python2.7/site-packages/gtk-2.0/dsextras.py

    a b  
    162162            # Note gcc2 uses -fnative-struct while gcc3
    163163            # and gcc4 use -mms-bitfields. Based on the
    164164            # version the proper flag is used below.
    165             msnative_struct = {'2': '-fnative-struct',
    166                                '3': '-mms-bitfields',
    167                                '4': '-mms-bitfields'}
     165            msnative_struct = {'2': '-fnative-struct'}
    168166            gcc_version = getoutput('gcc -dumpversion')
    169167
     168            sarg = msnative_struct.get(gcc_version, '-mms-bitfields')
    170169            print ('using MinGW GCC version %s with %s option' % \
    171                   (gcc_version, msnative_struct[gcc_version[0]]))
     170                  (gcc_version, sarg))
    172171
    173             self.extra_compile_args.append(msnative_struct[gcc_version[0]])
     172            self.extra_compile_args.append(sarg)
    174173
    175174    def modify_compiler(self):
    176175        if sys.platform == 'win32' and self.compiler.compiler_type == 'mingw32':