Re: [Tinycc-devel] shared libraries and run-time path issues

2015-05-22 Thread Vincent Lefevre
On 2015-05-22 10:51:47 +0200, Vincent Lefevre wrote:
> With gcc, the run path is used with:
> 
>   -Wl,-rpath -Wl,/home/vlefevre/software/mpfr/src/.libs
> 
> So, I assume that this is only a libtool bug, as libtool should generate
> that too (this seems to work when I add that manually).

I've submitted a patch for libtool:

  http://lists.gnu.org/archive/html/libtool-patches/2015-05/msg0.html

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


Re: [Tinycc-devel] shared libraries and run-time path issues

2015-05-22 Thread Vincent Lefevre
On 2015-05-22 07:52:38 +0300, Sergey Korshunoff wrote:
> > I wonder whether something can be improved on the tcc side
> > The problem is that the MPFR library used at run time is not
> > ../src/.libs/libmpfr.so but the one installed on the system.
> 
> What the difference between gcc and tcc in this case? Why exe produced
> by gcc use ./src/.libs/libmpfr.so and exe produced by tcc use one
> installed on the system?

With gcc, the run path is used with:

  -Wl,-rpath -Wl,/home/vlefevre/software/mpfr/src/.libs

So, I assume that this is only a libtool bug, as libtool should generate
that too (this seems to work when I add that manually).

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


Re: [Tinycc-devel] shared libraries and run-time path issues

2015-05-21 Thread Sergey Korshunoff
> I wonder whether something can be improved on the tcc side
> The problem is that the MPFR library used at run time is not
> ../src/.libs/libmpfr.so but the one installed on the system.

What the difference between gcc and tcc in this case? Why exe produced
by gcc use ./src/.libs/libmpfr.so and exe produced by tcc use one
installed on the system?

Can you write some small test (library, main program, shell commands)?
If not, I will try to reproduce this some time later.

___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


[Tinycc-devel] shared libraries and run-time path issues

2015-05-21 Thread Vincent Lefevre
I've reported the following problem for libtool 2.4.6:

  http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20622

but I wonder whether something can be improved on the tcc side
(except by using static linking, which works).

When I build GNU MPFR with CC=tcc LD=tcc and do "make check",
I get things like:

  libtool: link: tcc -O2 -o tzeta_ui tzeta_ui.o  -L../src/.libs 
./.libs/libfrtests.a -lm ../src/.libs/libmpfr.so -lgmp

The problem is that the MPFR library used at run time is not
../src/.libs/libmpfr.so but the one installed on the system.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel