No Description

0025-DOC-remove-references-to-CPU-native-in-the-README.patch 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. From 94fb38fbb77e664e4f41343257a26ae5bab40d1d Mon Sep 17 00:00:00 2001
  2. From: Willy Tarreau <w@1wt.eu>
  3. Date: Thu, 10 Jul 2014 20:24:25 +0200
  4. Subject: [PATCH 25/25] DOC: remove references to CPU=native in the README
  5. Certain compilers running in virtualized environments may produce code
  6. that the same processor cannot execute with -march=native, either because
  7. of hypervisor bugs reporting wrong CPU features, or because of compiler
  8. bugs forgetting to check CPU features. So better stop recommending this
  9. combination so that users don't get trapped anymore.
  10. (cherry picked from commit 817dad50b02d1a82d495dfea4eab9e3a91127391)
  11. ---
  12. README | 9 +++++----
  13. 1 file changed, 5 insertions(+), 4 deletions(-)
  14. diff --git a/README b/README
  15. index 0ef0179..e2b8570 100644
  16. --- a/README
  17. +++ b/README
  18. @@ -53,8 +53,9 @@ one of the following choices to the CPU variable :
  19. - i686 for intel PentiumPro, Pentium 2 and above, AMD Athlon
  20. - i586 for intel Pentium, AMD K6, VIA C3.
  21. - ultrasparc : Sun UltraSparc I/II/III/IV processor
  22. - - native : use the build machine's specific processor optimizations
  23. - - generic : any other processor or no specific optimization. (default)
  24. + - native : use the build machine's specific processor optimizations. Use with
  25. + extreme care, and never in virtualized environments (known to break).
  26. + - generic : any other processor or no CPU-specific optimization. (default)
  27. Alternatively, you may just set the CPU_CFLAGS value to the optimal GCC options
  28. for your platform.
  29. @@ -132,11 +133,11 @@ And I build it this way on OpenBSD or FreeBSD :
  30. And on a classic Linux with SSL and ZLIB support (eg: Red Hat 5.x) :
  31. - $ make TARGET=linux26 CPU=native USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1
  32. + $ make TARGET=linux26 USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1
  33. And on a recent Linux >= 2.6.28 with SSL and ZLIB support :
  34. - $ make TARGET=linux2628 CPU=native USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1
  35. + $ make TARGET=linux2628 USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1
  36. In order to build a 32-bit binary on an x86_64 Linux system with SSL support
  37. without support for compression but when OpenSSL requires ZLIB anyway :
  38. --
  39. 1.8.5.5