04_waf-pie.patch 673 B

12345678910111213141516171819202122
  1. Description: Fix waf support for PIE
  2. Origin: vendor
  3. Debian-Bug: https://bugs.debian.org/799738
  4. Forwarded: not-needed
  5. Author: Simon Ruderich <simon@ruderich.org>
  6. Reviewed-by: Alessandro Ghedini <ghedo@debian.org>
  7. Last-Update: 2015-09-24
  8. --- a/waflib/Context.py
  9. +++ b/waflib/Context.py
  10. @@ -140,6 +140,10 @@
  11. def exec_command(self,cmd,**kw):
  12. subprocess=Utils.subprocess
  13. kw['shell']=isinstance(cmd,str)
  14. + # FIXME: hacky solution to fix PIC-PIE-conflict
  15. + if '-shared' in cmd:
  16. + Logs.debug('runner: old %r'%(cmd,))
  17. + cmd = [x for x in cmd if x != '-fPIE' and x != '-pie']
  18. Logs.debug('runner: %r'%(cmd,))
  19. Logs.debug('runner_env: kw=%s'%kw)
  20. if self.logger: