commit:     60f15dba6835d3ec1b703a7d4d375df05a8fa6c7
Author:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Wed Apr 28 21:19:38 2021 +0000
Commit:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
CommitDate: Wed Apr 28 21:25:15 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=60f15dba

dev-libs/ftl: fix FLAGS (i.e. FCFLAGS) reassigning, pass CXXFLAGS

Closes: https://bugs.gentoo.org/785745

Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>

 dev-libs/ftl/ftl-1.0_p20210308.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dev-libs/ftl/ftl-1.0_p20210308.ebuild 
b/dev-libs/ftl/ftl-1.0_p20210308.ebuild
index 6981da492..214f8876e 100644
--- a/dev-libs/ftl/ftl-1.0_p20210308.ebuild
+++ b/dev-libs/ftl/ftl-1.0_p20210308.ebuild
@@ -55,11 +55,14 @@ src_prepare() {
                        ;;
        esac
 
-       # Replase install PREFIX, LIBDIR, add library soname
+       # Replase BUILD type, PREFIX and libdir, LIBDIR, add libsoname and 
LDFLAGS,
+       # drop FLAGS reassign block, add CXXFLAGS to 'configure_ftlRegex.c' 
build
        sed -i -e '/^BUILD ?=/s:debug:release:' \
                -e 's:PREFIX ?= /usr/local:PREFIX ?= '"${ED}"'/usr/:' \
                -e 's:(PREFIX)/lib:(PREFIX)/'"$(get_libdir)"':' \
                -e 's:SOLDFLAGS = -shared:SOLDFLAGS = -shared 
-Wl,-soname=libftl.so.1 '"${LDFLAGS}"':' \
+               -e '/gnudebug)/,+15d' \
+               -e '/configure_ftlRegex.c/ s:\$(CXXCOMPILER):\$(CXXCOMPILER) 
\$(CXXFLAGS):' \
                makefile || die
 }
 

Reply via email to