nginx: Fix compilation with LTO
[feed/packages.git] / net / nginx / patches / nginx / 102-sizeof_test_fix.patch
index 7d2430eab9f927063fa18b3fa32dc5618ea774ad..823e7eabb94196073c2594a4dbceb7acbfe2c40b 100644 (file)
@@ -4,7 +4,7 @@
  $NGX_INCLUDE_INTTYPES_H
  $NGX_INCLUDE_AUTO_CONFIG_H
  
-+char object_code_block[] = {
++volatile char object_code_block[] = {
 +      '\n', 'e', '4', 'V', 'A',
 +      '0', 'x', ('0' + sizeof($ngx_type)),
 +      'Y', '3', 'p', 'M', '\n'