dev-libs/xmlsec: respect CFLAGS

Don't force -O.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2023-04-17 01:50:33 +01:00
parent 1221c15b4a
commit a70936797b
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- 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"

View File

@ -3,6 +3,8 @@
EAPI=8
inherit autotools
DESCRIPTION="Command line tool for signing, verifying, encrypting and decrypting XML"
HOMEPAGE="https://www.aleksey.com/xmlsec"
SRC_URI="https://www.aleksey.com/xmlsec/download/${PN}1-${PV}.tar.gz"
@ -43,8 +45,15 @@ BDEPEND="
PATCHES=(
"${FILESDIR}"/${P}-strict-prototypes.patch
"${FILESDIR}"/${P}-clang.patch
"${FILESDIR}"/${P}-optimisation.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
local myeconfargs=(
$(use_enable doc docs)