From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9095 invoked by alias); 20 Feb 2013 16:59:00 -0000 Received: (qmail 9014 invoked by uid 22791); 20 Feb 2013 16:58:59 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-we0-f171.google.com (HELO mail-we0-f171.google.com) (74.125.82.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Feb 2013 16:58:54 +0000 Received: by mail-we0-f171.google.com with SMTP id u54so6960523wey.30 for ; Wed, 20 Feb 2013 08:58:53 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.194.62.170 with SMTP id z10mr35237014wjr.34.1361379533144; Wed, 20 Feb 2013 08:58:53 -0800 (PST) Received: by 10.217.6.69 with HTTP; Wed, 20 Feb 2013 08:58:53 -0800 (PST) Date: Wed, 20 Feb 2013 16:59:00 -0000 Message-ID: Subject: Re: eature request: not need to specify PTW32_STATIC_LIB for static usage possible ? From: Roger Pack To: pthreads-win32@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2013/txt/msg00003.txt.bz2 Yeah I can't think of any easyway, either, except perhaps making static linking the default way and "make those DLL guys use a preprocessor flag" (which may not be the best way). Does anybody know what other libraries do in this case? Typically do they all require some preprocessor macro to express if the library is static or not? (I guess in linux they don't somehow, but maybe windows/MSVC require it?) -r On 2/18/13, Ross Johnson wrote: > 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- > >