Skip to content

Commit

Permalink
net-proxy/byedpi: respect LDFLAGS and die for sed
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/937762
Signed-off-by: Michael Zavertkin <[email protected]>
  • Loading branch information
ProMix0 committed Aug 11, 2024
1 parent b5b8b24 commit 7fd2e3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions net-proxy/byedpi/byedpi-0.12.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ KEYWORDS="~amd64"

src_compile() {
tc-export CC
export CFLAGS
sed -i 's/ -O.\b/ /' Makefile
export CFLAGS LDFLAGS
sed -i 's/ -O.\b/ /' Makefile || die
# respect LDFLAGS
sed -i 's/$(CFLAGS) /$(CFLAGS) $(LDFLAGS) /' Makefile || die
# workaround for compiling without -O2
# https://github.com/hufrea/byedpi/commit/3fee8d5aed122f34ec13637f5f4b1502d13cc923
sed -i 's/inline bool check_port/static inline bool check_port/' extend.c
sed -i 's/inline bool check_port/static inline bool check_port/' extend.c || die

default
}
Expand Down
2 changes: 1 addition & 1 deletion net-proxy/byedpi/byedpi-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ SLOT="0"
src_compile() {
tc-export CC
export CFLAGS LDFLAGS
sed -i 's/ -O.\b/ /' Makefile
sed -i 's/ -O.\b/ /' Makefile || die

default
}
Expand Down

0 comments on commit 7fd2e3c

Please sign in to comment.