Fix _FORTIFY_SOURCE redefinition build failure on Ubuntu 24.04 #8

Merged
iamdoubz merged 1 commits from fortify-source-fix into free 2026-11-03 10:35:33 -06:00
+1 -1
View File
@@ -258,7 +258,7 @@ run ./auto/configure \
--with-openssl="../openssl-$V_QSSL" \
--with-openssl-opt="$ssl_opt$ktls_opt" \
"${mods[@]}" \
--with-cc-opt="-g -O2 -ffile-prefix-map=/data/builder/debuild/nginx-$V_NGINX/debian/debuild-base/nginx-$V_NGINX=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC -I../openssl-$V_QSSL/build/include" \
--with-cc-opt="-g -O2 -ffile-prefix-map=/data/builder/debuild/nginx-$V_NGINX/debian/debuild-base/nginx-$V_NGINX=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -I../openssl-$V_QSSL/build/include" \
--with-ld-opt="-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie -L../openssl-$V_QSSL/build/lib"
step "Compiling with $JOBS jobs (this takes a while)"