-fPIC is missing in the FLAGS.
Created attachment 792 [details] Add -fPIC to the FLAGS This is a patch we use since several distributions.
*** This bug has been marked as a duplicate of 851 ***
Added proposed fix with rev 8657 as it still wasn't applied.