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

Re: Shared library



Bob> Section 11.2 of Debian Policy says: You must specify the gcc
Bob> option `-D_REENTRANT' when building a library (either static or
Bob> shared) to make the library compatible with LinuxThreads.

Bob> Is this obsolete?  I can't find `-D_REENTRANT' in the gcc
Bob> documentation.

Because it is just a special case of the -D"var=val" option.

Bob> I assume that all Debian packages should be compatible with
Bob> LinuxThreads, or is this necessary only for code that
Bob> specifically uses threads?

We cannot predict what code the library will be linked with, so we
must assume it will be linked with threaded code.

-- 
Ian Zimmerman, Oakland, California, U.S.A. 
if (sizeof(signed) > sizeof(unsigned) + 4) { delete this; }
GPG: 433BA087  9C0F 194F 203A 63F7 B1B8  6E5A 8CA3 27DB 433B A087



Reply to: