[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Two questions about policy



On Tue, Oct 03, 2000 at 10:17:38AM -0700, Yves Arrouye wrote:
> [Repost from debian-mentors]
> 
> Hi,
> 
> I was browsing policy to familiarize myself with it again, and I have two
> questions:
> 
> 1. I see no mention on rpath in the policy manual (grepping through all the
> .html files) yet lintian issues a warning about it. I'm asking because I'm
> packaging something that uses rpath heavily. The package I'm building build
> libraries, then tools that use the libraries, and that's where the RPATH
> comes into play. If I remove it, I have to invoke the tools with
> LD_LIBRARY_PATH set during the build. Is there another way?

That's the recommended way.  IMO, there's no good reason for built
binaries to differ depending where they were built...

> 2. The manual says that one should use -D_REENTRANT when building libraries.
> Only libraries? Can I be enlightened on why it matters only for the
> libraries? Also, is that still necessary? And lastly, should -D_REENTRANT be
> always used or only if you have a library that uses threads (I guess
> always...)

It's only an issue when building libraries, because not doing so means
that you can not link multithreaded applications against the library.


Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         dan@debian.org         |  |       dmj+@andrew.cmu.edu      |
\--------------------------------/  \--------------------------------/



Reply to: