diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2024-11-09 02:40:25 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2024-11-09 02:40:25 +0100 |
commit | b2659623e70f2f0017218b9a8a3cef9c58dad842 (patch) | |
tree | d55e54b8caab31c25233016aa8e1ded0f023b1ed /dev-libs | |
parent | games-fps/eduke32: make hrp license conditional (diff) | |
download | gentoo-b2659623e70f2f0017218b9a8a3cef9c58dad842.tar.gz gentoo-b2659623e70f2f0017218b9a8a3cef9c58dad842.tar.bz2 gentoo-b2659623e70f2f0017218b9a8a3cef9c58dad842.zip |
dev-libs/libmodbus: respect users cflags
Closes: https://bugs.gentoo.org/941995
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/libmodbus/files/libmodbus-3.1.11-cflags.patch | 17 | ||||
-rw-r--r-- | dev-libs/libmodbus/libmodbus-3.1.11-r1.ebuild (renamed from dev-libs/libmodbus/libmodbus-3.1.11.ebuild) | 9 |
2 files changed, 26 insertions, 0 deletions
diff --git a/dev-libs/libmodbus/files/libmodbus-3.1.11-cflags.patch b/dev-libs/libmodbus/files/libmodbus-3.1.11-cflags.patch new file mode 100644 index 000000000000..ae9de9ab36ef --- /dev/null +++ b/dev-libs/libmodbus/files/libmodbus-3.1.11-cflags.patch @@ -0,0 +1,17 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -178,14 +178,6 @@ + [enable_debug=$enableval], + [enable_debug=no]) + +-AS_IF([test "x$enable_debug" = "xyes"], [ +- CFLAGS="-g -O0" +- CXXFLAGS="-g -O0" +-], [ +- CFLAGS="-O2" +- CXXFLAGS="-O2" +-]) +- + AC_OUTPUT + AC_MSG_RESULT([ + $PACKAGE $VERSION diff --git a/dev-libs/libmodbus/libmodbus-3.1.11.ebuild b/dev-libs/libmodbus/libmodbus-3.1.11-r1.ebuild index aef845307db2..cc96ddbb2f5c 100644 --- a/dev-libs/libmodbus/libmodbus-3.1.11.ebuild +++ b/dev-libs/libmodbus/libmodbus-3.1.11-r1.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit autotools + DESCRIPTION="Modbus library which supports RTU communication over a serial line or a TCP link" HOMEPAGE="https://libmodbus.org/" SRC_URI="https://github.com/stephane/${PN}/releases/download/v${PV}/${P}.tar.gz" @@ -13,6 +15,13 @@ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" IUSE="static-libs test" RESTRICT="!test? ( test )" +PATCHES=( "${FILESDIR}/${PN}-3.1.11-cflags.patch" ) + +src_prepare() { + default + eautoreconf +} + src_configure() { local myeconfargs=( $(use_enable test tests) |