From 2dd51f3d3900b6a7418c9552de18752eebdac7d3 Mon Sep 17 00:00:00 2001 From: Chen Minqiang Date: Fri, 22 Mar 2024 08:03:51 +0800 Subject: [PATCH] Revert "nginx: Fix compilation with LTO" This reverts commit 3b13b08ad98dd15999e83c98f80674c9965d7a10. --- net/nginx/Makefile | 2 +- net/nginx/patches/nginx/102-sizeof_test_fix.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/nginx/Makefile b/net/nginx/Makefile index a96cc70e88..4e02455041 100644 --- a/net/nginx/Makefile +++ b/net/nginx/Makefile @@ -23,7 +23,7 @@ PKG_CPE_ID:=cpe:/a:nginx:nginx PKG_FIXUP:=autoreconf PKG_BUILD_PARALLEL:=1 PKG_INSTALL:=1 -PKG_BUILD_FLAGS:=gc-sections lto +PKG_BUILD_FLAGS:=gc-sections # 3rd-party modules PKG_MOD_EXTRA := \ diff --git a/net/nginx/patches/nginx/102-sizeof_test_fix.patch b/net/nginx/patches/nginx/102-sizeof_test_fix.patch index 823e7eabb9..7d2430eab9 100644 --- a/net/nginx/patches/nginx/102-sizeof_test_fix.patch +++ b/net/nginx/patches/nginx/102-sizeof_test_fix.patch @@ -4,7 +4,7 @@ $NGX_INCLUDE_INTTYPES_H $NGX_INCLUDE_AUTO_CONFIG_H -+volatile char object_code_block[] = { ++char object_code_block[] = { + '\n', 'e', '4', 'V', 'A', + '0', 'x', ('0' + sizeof($ngx_type)), + 'Y', '3', 'p', 'M', '\n'