]> git.kaiwu.me - nginx.git/commitdiff
Merge of r4691: changed default alignment to 16.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 2 Jul 2012 17:08:26 +0000 (17:08 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 2 Jul 2012 17:08:26 +0000 (17:08 +0000)
This fixes alignment problems observerd on ARMs, and likely also needed
for MIPSes.  Unless we know alignment is not required just assume we
need 16, which appears to be safe default for all architectures.

See here for details:
http://mailman.nginx.org/pipermail/nginx/2012-June/034139.html

auto/os/conf

index 8c18a63fc4bc2c34dd5a4f9fe22172276f6ad8ba..5e658b5f3a6c2d896cae3567d3c33cb4a7d2aa5e 100644 (file)
@@ -93,6 +93,7 @@ case "$NGX_MACHINE" in
     ;;
 
     *)
+        have=NGX_ALIGNMENT value=16 . auto/define
         NGX_MACH_CACHE_LINE=32
     ;;