1 |
On Sun, 2019-07-14 at 19:50 -0400, Mike Gilbert wrote: |
2 |
> Signed-off-by: Mike Gilbert <floppym@g.o> |
3 |
> --- |
4 |
> eclass/toolchain-funcs.eclass | 15 ++++----------- |
5 |
> 1 file changed, 4 insertions(+), 11 deletions(-) |
6 |
> |
7 |
> diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass |
8 |
> index 2e027015c684..7bd90bb4e4a0 100644 |
9 |
> --- a/eclass/toolchain-funcs.eclass |
10 |
> +++ b/eclass/toolchain-funcs.eclass |
11 |
> @@ -950,18 +950,11 @@ tc-enables-ssp-all() { |
12 |
> # @FUNCTION: gen_usr_ldscript |
13 |
> # @USAGE: [-a] <list of libs to create linker scripts for> |
14 |
> # @DESCRIPTION: |
15 |
> -# This function generate linker scripts in /usr/lib for dynamic |
16 |
> -# libs in /lib. This is to fix linking problems when you have |
17 |
> -# the .so in /lib, and the .a in /usr/lib. What happens is that |
18 |
> -# in some cases when linking dynamic, the .a in /usr/lib is used |
19 |
> -# instead of the .so in /lib due to gcc/libtool tweaking ld's |
20 |
> -# library search path. This causes many builds to fail. |
21 |
> -# See bug #4411 for more info. |
22 |
> -# |
23 |
> -# Note that you should in general use the unversioned name of |
24 |
> -# the library (libfoo.so), as ldconfig should usually update it |
25 |
> -# correctly to point to the latest version of the library present. |
26 |
> +# This function is deprecated. Use the version from |
27 |
> +# usr-ldscript.eclass instead. |
28 |
> gen_usr_ldscript() { |
29 |
> + ewarn "${FUNCNAME}: Please migrate to usr-ldscript.eclass" |
30 |
> + |
31 |
> local lib libdir=$(get_libdir) output_format="" auto=false suffix=$(get_libname) |
32 |
> [[ -z ${ED+set} ]] && local ED=${D%/}${EPREFIX}/ |
33 |
> |
34 |
|
35 |
Wouldn't this trigger when both toolchain-funcs and usr-ldscript are |
36 |
inherited, in reverse order? |
37 |
|
38 |
-- |
39 |
Best regards, |
40 |
Michał Górny |