Ticket #678: dsextras-gcc.patch
File dsextras-gcc.patch, 1.1 KB (added by , 4 years ago) |
---|
-
lib/python2.7/site-packages/gtk-2.0/dsextras.py
a b 162 162 # Note gcc2 uses -fnative-struct while gcc3 163 163 # and gcc4 use -mms-bitfields. Based on the 164 164 # 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'} 168 166 gcc_version = getoutput('gcc -dumpversion') 169 167 168 sarg = msnative_struct.get(gcc_version, '-mms-bitfields') 170 169 print ('using MinGW GCC version %s with %s option' % \ 171 (gcc_version, msnative_struct[gcc_version[0]]))170 (gcc_version, sarg)) 172 171 173 self.extra_compile_args.append( msnative_struct[gcc_version[0]])172 self.extra_compile_args.append(sarg) 174 173 175 174 def modify_compiler(self): 176 175 if sys.platform == 'win32' and self.compiler.compiler_type == 'mingw32':