aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZen <dev@pyl.onl>2024-09-05 00:22:19 -0500
committerZen <dev@pyl.onl>2024-09-05 12:30:55 -0500
commit8c4aab66f72e9e6ad277bcf353ecb1b7d7e0818b (patch)
treee8bb02e1b8a7f3867b1018b981aac32ac9db7fed /net-misc
parentsys-boot/limine: add 8.0.9 (diff)
downloadguru-8c4aab66f72e9e6ad277bcf353ecb1b7d7e0818b.tar.gz
guru-8c4aab66f72e9e6ad277bcf353ecb1b7d7e0818b.tar.bz2
guru-8c4aab66f72e9e6ad277bcf353ecb1b7d7e0818b.zip
net-misc/mbpoll: remove hardcoded -O2 from cmake files
Signed-off-by: Zen <dev@pyl.onl>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/mbpoll/mbpoll-1.5.2.ebuild7
-rw-r--r--net-misc/mbpoll/mbpoll-9999.ebuild7
2 files changed, 14 insertions, 0 deletions
diff --git a/net-misc/mbpoll/mbpoll-1.5.2.ebuild b/net-misc/mbpoll/mbpoll-1.5.2.ebuild
index 30d654f8a..134348fc2 100644
--- a/net-misc/mbpoll/mbpoll-1.5.2.ebuild
+++ b/net-misc/mbpoll/mbpoll-1.5.2.ebuild
@@ -15,3 +15,10 @@ KEYWORDS="~amd64"
DEPEND="dev-libs/libmodbus"
RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e 's/add_definitions(-O2)//' CMakeLists.txt
+ sed -i -e 's/-O2 //' CMakeLists.txt
+
+ cmake_src_prepare
+}
diff --git a/net-misc/mbpoll/mbpoll-9999.ebuild b/net-misc/mbpoll/mbpoll-9999.ebuild
index 85fefda9f..18a20b422 100644
--- a/net-misc/mbpoll/mbpoll-9999.ebuild
+++ b/net-misc/mbpoll/mbpoll-9999.ebuild
@@ -14,3 +14,10 @@ SLOT="0"
DEPEND="dev-libs/libmodbus"
RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e 's/add_definitions(-O2)//' CMakeLists.txt
+ sed -i -e 's/-O2 //' CMakeLists.txt
+
+ cmake_src_prepare
+}