summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-04-17 01:50:33 +0100
committerSam James <sam@gentoo.org>2023-04-17 01:50:48 +0100
commita70936797b3e090b9e7396bd1765134d11a91a1c (patch)
tree88cca5b1194c6b40fec1638ff56ba8b48aade343 /dev-libs
parentsys-devel/gcc: add USE=debug description (diff)
downloadgentoo-a70936797b3e090b9e7396bd1765134d11a91a1c.tar.gz
gentoo-a70936797b3e090b9e7396bd1765134d11a91a1c.tar.bz2
gentoo-a70936797b3e090b9e7396bd1765134d11a91a1c.zip
dev-libs/xmlsec: respect CFLAGS
Don't force -O. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/xmlsec/files/xmlsec-1.3.0-optimisation.patch11
-rw-r--r--dev-libs/xmlsec/xmlsec-1.3.0-r1.ebuild (renamed from dev-libs/xmlsec/xmlsec-1.3.0.ebuild)9
2 files changed, 20 insertions, 0 deletions
diff --git a/dev-libs/xmlsec/files/xmlsec-1.3.0-optimisation.patch b/dev-libs/xmlsec/files/xmlsec-1.3.0-optimisation.patch
new file mode 100644
index 000000000000..2cd0401e019d
--- /dev/null
+++ b/dev-libs/xmlsec/files/xmlsec-1.3.0-optimisation.patch
@@ -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"
diff --git a/dev-libs/xmlsec/xmlsec-1.3.0.ebuild b/dev-libs/xmlsec/xmlsec-1.3.0-r1.ebuild
index e0191245d162..e90f0e76d9e9 100644
--- a/dev-libs/xmlsec/xmlsec-1.3.0.ebuild
+++ b/dev-libs/xmlsec/xmlsec-1.3.0-r1.ebuild
@@ -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)