build: compile with -fno-tree-sink if gcc <= 4.4

Fixes a 'pure virtual method called' run-time error with some versions of gcc
on some platforms, notably ARM.
This commit is contained in:
Ben Noordhuis 2012-08-27 22:08:06 +02:00
parent 84590f3fe9
commit 2786737417

View File

@ -69,6 +69,9 @@
['clang == 0 and gcc_version >= 40', {
'cflags': [ '-fno-tree-vrp' ],
}],
['clang == 0 and gcc_version <= 44', {
'cflags': [ '-fno-tree-sink' ],
}],
],
}],
['OS=="solaris"', {