From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23407 invoked by alias); 19 Feb 2013 01:03:25 -0000 Received: (qmail 23381 invoked by uid 22791); 19 Feb 2013 01:03:23 -0000 X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_VIA_APNIC X-Spam-Check-By: sourceware.org Received: from icp-osb-irony-out2.external.iinet.net.au (HELO icp-osb-irony-out2.external.iinet.net.au) (203.59.1.218) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 19 Feb 2013 01:03:15 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgEFAJDNIlHKN5wE/2dsb2JhbABEvU6CWYEFFnOCHwEBBTgbJRELDQsJFg8JAwIBAgFFEwgBAYgNsUCPdo81FoMqA5JtiTAig0WHAIFSgUk Received: from unknown (HELO mail03.grapevine.net.au) ([202.55.156.4]) by icp-osb-irony-out2.iinet.net.au with ESMTP; 19 Feb 2013 09:03:12 +0800 Received: from [180.200.174.132] (helo=[192.168.2.2]) by mail03.grapevine.net.au with esmtp (Exim 4.77) (envelope-from ) id 1U7bc0-0004I4-FA for pthreads-win32@sourceware.org; Tue, 19 Feb 2013 12:03:12 +1100 Message-ID: <5122CF4E.1050301@homemail.com.au> Date: Tue, 19 Feb 2013 01:03:00 -0000 From: Ross Johnson User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: pthreads-win32@sourceware.org Subject: Re: feature request: not need to specify PTW32_STATIC_LIB for static usage possible ? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00002.txt.bz2 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-