Skip to content

Commit

Permalink
sci-electronics/verilator: fix user CFLAG and missing gdb BDEPEND
Browse files Browse the repository at this point in the history
- 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 <[email protected]>
  • Loading branch information
vowstar committed Oct 11, 2024
1 parent 561b63a commit 25bad19
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ BDEPEND="
sys-devel/flex
test? (
dev-build/cmake
dev-debug/gdb
)
"

Expand All @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ BDEPEND="
sys-devel/flex
test? (
dev-build/cmake
dev-debug/gdb
)
"

Expand All @@ -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
}
6 changes: 6 additions & 0 deletions sci-electronics/verilator/verilator-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ BDEPEND="
sys-devel/flex
test? (
dev-build/cmake
dev-debug/gdb
)
"

Expand All @@ -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
}

0 comments on commit 25bad19

Please sign in to comment.