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

RE: Two questions about policy



On 03-Oct-2000 Yves Arrouye wrote:
> 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.
> 

rpath hardcodes an item's location.  If this item later moves, everything using
it gets confused.  rpath is generally frowned upon.

> 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...)
> 

even if your lib is not threaded, it could be used by a threaded app.  It is
important for applications because you do not know how the user will use your
lib.  A maintainer of an application can easily tell if it uses threads and
compile it accordingly.



Reply to: