mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
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:
@@ -55,11 +55,14 @@ src_prepare() {
|
|||||||
;;
|
;;
|
||||||
esac
|
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:' \
|
sed -i -e '/^BUILD ?=/s:debug:release:' \
|
||||||
-e 's:PREFIX ?= /usr/local:PREFIX ?= '"${ED}"'/usr/:' \
|
-e 's:PREFIX ?= /usr/local:PREFIX ?= '"${ED}"'/usr/:' \
|
||||||
-e 's:(PREFIX)/lib:(PREFIX)/'"$(get_libdir)"':' \
|
-e 's:(PREFIX)/lib:(PREFIX)/'"$(get_libdir)"':' \
|
||||||
-e 's:SOLDFLAGS = -shared:SOLDFLAGS = -shared -Wl,-soname=libftl.so.1 '"${LDFLAGS}"':' \
|
-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
|
makefile || die
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user