mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 11:16:31 +04:00
nginx: Fix compilation with LTO
When CONFIG_USE_LTO=y, the int-size detection script will fail because a variable gets optimised out. Mark it as volatile to fix the issue. Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
This commit is contained in:
committed by
Rosen Penev
parent
d701cae191
commit
3b13b08ad9
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user