0001-remove-incorrect-header-path.patch 736 B

123456789101112131415161718192021
  1. Do not use /usr/include for headers
  2. Using /usr/include is wrong when doing cross-compilation, so get rid
  3. of it, and rely on the compiler to use the appropriate default paths
  4. for headers.
  5. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  6. Index: b/setup.py
  7. ===================================================================
  8. --- a/setup.py
  9. +++ b/setup.py
  10. @@ -370,7 +370,7 @@
  11. 'ext_modules': plat_ext + [
  12. # _fastmath (uses GNU mp library)
  13. Extension("Crypto.PublicKey._fastmath",
  14. - include_dirs=['src/','/usr/include/'],
  15. + include_dirs=['src/'],
  16. libraries=['gmp'],
  17. sources=["src/_fastmath.c"]),