~chromium-team/chromium-browser/yakkety-dev

« back to all changes in this revision

Viewing changes to debian/patches/swiftshader-no-fPIC.patch

  • Committer: Olivier Tilloy
  • Date: 2017-04-24 16:40:34 UTC
  • Revision ID: olivier.tilloy@canonical.com-20170424164034-27jjfp18c683x8o7
* debian/patches/swiftshader-no-fPIC.patch: removed
* debian/patches/no-fPIC.patch: added

Show diffs side-by-side

added added

removed removed

Lines of Context:
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>
4
 
 
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") {
8
 
     "Timer.cpp",
9
 
   ]
10
 
 
11
 
+  if (current_cpu == "x86") {
12
 
+    cflags -= [ "-fPIC" ]
13
 
+  }
14
 
+
15
 
   configs += [ ":swiftshader_common_private_config" ]
16
 
 }