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@yandex.ru>
This commit is contained in:
Sergey Torokhov
2021-04-29 00:19:38 +03:00
parent c00dbd5fd5
commit 60f15dba68

View File

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