Skip to content

Commit

Permalink
Fix build on Ubuntu 24.04 LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
VirtuBox committed May 21, 2024
1 parent 9e0ca89 commit aacfea1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nginx-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit aacfea1

Please sign in to comment.