1
Description: When building with GCC < 5.0, do not enable position-independent code
2
See https://software.intel.com/en-us/blogs/2014/12/26/new-optimizations-for-x86-in-upcoming-gcc-50-32bit-pic-mode for details
3
Author: Olivier Tilloy <olivier.tilloy@canonical.com>
5
--- a/third_party/swiftshader/src/Common/BUILD.gn
6
+++ b/third_party/swiftshader/src/Common/BUILD.gn
7
@@ -36,5 +36,9 @@ source_set("swiftshader_common") {
11
+ if (current_cpu == "x86") {
12
+ cflags -= [ "-fPIC" ]
15
configs += [ ":swiftshader_common_private_config" ]