ports/www/tinyproxy/files/patch-configure
Po-Chuan Hsieh 4fe8fe9260
www/tinyproxy: Fix build on main after b53d7aa88fd5a5e8a67dd71ea7332fa473595d28
- Remove _FORTIFY_SOURCE to fix build
- Remove -Wlogical-op warning

warning: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'? [-Wunknown-warning-option]
In file included from hostspec.c:1:
In file included from ./common.h:52:
In file included from /usr/include/wchar.h:116:
/usr/include/ssp/wchar.h:34:8: error: unknown type name 'inline'
   34 | static inline int
      |        ^
1 warning and 1 error generated.

Reference:	https://cgit.freebsd.org/src/commit/?id=b53d7aa88fd5a5e8a67dd71ea7332fa473595d28
		https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/p6fe85dedb3d5_s47fb5d2b13c/logs/tinyproxy-1.11.2_2,1.log
2024-07-21 17:56:35 +08:00

12 lines
1.2 KiB
Plaintext

--- configure.orig 2024-05-08 18:25:29 UTC
+++ configure
@@ -6376,7 +6376,7 @@ fi
fi
-DESIRED_FLAGS="-fdiagnostics-show-option -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wfloat-equal -Wundef -Wformat=2 -Wlogical-op -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Waggregate-return -Winit-self -Wpacked --std=c89 -ansi -Wno-overlength-strings -Wno-long-long -Wno-overlength-strings -Wdeclaration-after-statement -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-qual -Wcast-align -Wwrite-strings -Wp,-D_FORTIFY_SOURCE=2 -fno-common"
+DESIRED_FLAGS="-fdiagnostics-show-option -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wfloat-equal -Wundef -Wformat=2 -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Waggregate-return -Winit-self -Wpacked --std=c89 -ansi -Wno-overlength-strings -Wno-long-long -Wno-overlength-strings -Wdeclaration-after-statement -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-qual -Wcast-align -Wwrite-strings -fno-common"
if test -n "${MAINTAINER_MODE_FALSE}"; then
DESIRED_FLAGS="-Werror $DESIRED_FLAGS"