Fixed the issue by getting rid of no-fPIC.patch and building with gcc 5 on xenial, gcc 6 on yakkety, and disabling swiftshader on x86 on trusty.
Fixed the issue by getting rid of no-fPIC.patch and building with gcc 5 on xenial, gcc 6 on yakkety, and disabling swiftshader on x86 on trusty.