This is the mail archive of the pthreads-win32@sourceware.org mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: feature request: not need to specify PTW32_STATIC_LIB for static usage possible ?


Hi Roger,

Happy to receive suggestions that work for both MSVS and GNU toolchains. It must be possible (although I haven't found a way, but I'm probably overestimating the problem and just can't see the obvious). PTW32_STATIC_LIB is there during app builds because the headers (pthread.h, sched.h, semaphore.h) are used both in building the library and building apps but simply controls the export/import of symbols or not.

On 16/02/2013 5:36 AM, Roger Pack wrote:
would it be possible to somehow modify pthreads-win32 so that, if
compiled as static, and used as static, there is no need for the
"using" program to have to specify PTW32_STATIC_LIB ?  It seems a bit
odd to me to have to, for instance, configure ffmpeg like

./configure --extra-cflags=-DPTW32_STATIC_LIB

in order to be able to use it.
Anyway just thinking out loud.
Thanks!
-roger-


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]