sci-electronics/verilator: fix user CFLAG and missing gdb BDEPEND

- fix overwrites user's optimization (-O*)
- fix calls commands that do not exist: gdb

Closes: https://bugs.gentoo.org/927328
Closes: https://bugs.gentoo.org/887919
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui
2024-10-11 16:29:16 +08:00
parent 561b63ad87
commit 25bad19b5a
3 changed files with 18 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ BDEPEND="
sys-devel/flex
test? (
dev-build/cmake
dev-debug/gdb
)
"
@@ -64,6 +65,11 @@ src_prepare() {
eautoconf --force
}
src_configure() {
# https://bugs.gentoo.org/887919
econf CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}"
}
src_test() {
emake test
}

View File

@@ -42,6 +42,7 @@ BDEPEND="
sys-devel/flex
test? (
dev-build/cmake
dev-debug/gdb
)
"
@@ -64,6 +65,11 @@ src_prepare() {
eautoconf --force
}
src_configure() {
# https://bugs.gentoo.org/887919
econf CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}"
}
src_test() {
emake test
}

View File

@@ -42,6 +42,7 @@ BDEPEND="
sys-devel/flex
test? (
dev-build/cmake
dev-debug/gdb
)
"
@@ -64,6 +65,11 @@ src_prepare() {
eautoconf --force
}
src_configure() {
# https://bugs.gentoo.org/887919
econf CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}"
}
src_test() {
emake test
}