gentoo/dev-libs/xmlsec/files/xmlsec-1.3.0-optimisation.patch
Sam James a70936797b
dev-libs/xmlsec: respect CFLAGS
Don't force -O.

Signed-off-by: Sam James <sam@gentoo.org>
2023-04-17 01:50:48 +01:00

12 lines
583 B
Diff

--- a/configure.ac
+++ b/configure.ac
@@ -2482,7 +2482,7 @@ AC_ARG_ENABLE([pedantic], [AS_HELP_STRING([--enable-pedantic],[enable pedantic c
if test "z$enable_pedantic" = "zno" ; then
AC_MSG_RESULT([disabled])
else
- CFLAGS="$CFLAGS -O -std=c99 -pedantic -pedantic-errors -W -Wall -Wextra"
+ CFLAGS="$CFLAGS -std=c99 -pedantic -W -Wall -Wextra"
CFLAGS="$CFLAGS -fno-inline -Wnull-dereference -Wdouble-promotion"
CFLAGS="$CFLAGS -Wformat=2 -Wformat-security -Wformat-nonliteral"
CFLAGS="$CFLAGS -Wconversion -Wunused -Wshadow -Wpointer-arith -Wcast-align"