Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: gentoo-dev@l.g.o
Cc: base-system@g.o, toolchain@g.o
Subject: [gentoo-dev] [PATCH 6/6] toolchain-funcs.eclass: deprecate gen_usr_ldscript
Date: Sun, 14 Jul 2019 23:52:27
Message-Id: 20190714235007.5388-7-floppym@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/6] Make 'split-usr' USE flag global and use it in gen_usr_ldscript by Mike Gilbert
1 Signed-off-by: Mike Gilbert <floppym@g.o>
2 ---
3 eclass/toolchain-funcs.eclass | 15 ++++-----------
4 1 file changed, 4 insertions(+), 11 deletions(-)
5
6 diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
7 index 2e027015c684..7bd90bb4e4a0 100644
8 --- a/eclass/toolchain-funcs.eclass
9 +++ b/eclass/toolchain-funcs.eclass
10 @@ -950,18 +950,11 @@ tc-enables-ssp-all() {
11 # @FUNCTION: gen_usr_ldscript
12 # @USAGE: [-a] <list of libs to create linker scripts for>
13 # @DESCRIPTION:
14 -# This function generate linker scripts in /usr/lib for dynamic
15 -# libs in /lib. This is to fix linking problems when you have
16 -# the .so in /lib, and the .a in /usr/lib. What happens is that
17 -# in some cases when linking dynamic, the .a in /usr/lib is used
18 -# instead of the .so in /lib due to gcc/libtool tweaking ld's
19 -# library search path. This causes many builds to fail.
20 -# See bug #4411 for more info.
21 -#
22 -# Note that you should in general use the unversioned name of
23 -# the library (libfoo.so), as ldconfig should usually update it
24 -# correctly to point to the latest version of the library present.
25 +# This function is deprecated. Use the version from
26 +# usr-ldscript.eclass instead.
27 gen_usr_ldscript() {
28 + ewarn "${FUNCNAME}: Please migrate to usr-ldscript.eclass"
29 +
30 local lib libdir=$(get_libdir) output_format="" auto=false suffix=$(get_libname)
31 [[ -z ${ED+set} ]] && local ED=${D%/}${EPREFIX}/
32
33 --
34 2.22.0

Replies