From aacfea15a8bf01d7ee1e7284b5c9c3b212ccb540 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Tue, 21 May 2024 21:00:56 +0200 Subject: [PATCH] Fix build on Ubuntu 24.04 LTS --- nginx-build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nginx-build.sh b/nginx-build.sh index baf6a1d..dbac327 100755 --- a/nginx-build.sh +++ b/nginx-build.sh @@ -799,10 +799,10 @@ _configure_nginx() { fi if [ "$OS_ARCH" = 'x86_64' ]; then - if [ "$DISTRO_ID" = "Ubuntu" ]; then - DEB_CFLAGS='-m64 -march=native -mtune=native -DTCP_FASTOPEN=23 -g -O3 -fstack-protector-strong -flto -ffat-lto-objects -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wimplicit-fallthrough=0 -fcode-hoisting -Wp,-D_FORTIFY_SOURCE=2 -gsplit-dwarf' - DEB_LFLAGS='-lrt -ljemalloc -Wl,-z,relro -Wl,-z,now -fPIC -flto -ffat-lto-objects' - fi + #if [ "$DISTRO_ID" = "Ubuntu" ]; then + # DEB_CFLAGS='-m64 -march=native -mtune=native -DTCP_FASTOPEN=23 -g -O3 -fstack-protector-strong -flto -ffat-lto-objects -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wimplicit-fallthrough=0 -fcode-hoisting -Wp,-D_FORTIFY_SOURCE=2 -gsplit-dwarf' + # DEB_LFLAGS='-lrt -ljemalloc -Wl,-z,relro -Wl,-z,now -fPIC -flto -ffat-lto-objects' + #fi ZLIB_PATH='../zlib-cf' else ZLIB_PATH='../zlib'