automake
[Top][All Lists]
Advanced

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

Re: -pthread in Linux and CygWin


From: steven woody
Subject: Re: -pthread in Linux and CygWin
Date: Wed, 20 Sep 2006 16:26:53 +0800

On 9/20/06, Ralf Wildenhues <address@hidden> wrote:
Hello Steven,

* steven woody wrote on Wed, Sep 20, 2006 at 08:42:28AM CEST:
> i have a project which need to be build both on linux and cygwin.  i
> have to set the LDFLAGS = -pthread in linux but it leads an error in
> cygwin.  can automake help me?  i inserted the LDFLAGS line in
> Makefile.am.

Well.  What are the requirements for your package?  Does it need POSIX
threads?  Does it need some kind of thread support, and copes with the
different kinds that exist?

yes, i need to use thread, that's why i need the -pthread option.


For the simplest part, throw out the LDFLAGS setting in Makefile.am (if
anything you should be setting AM_LDFLAGS; LDFLAGS is reserved for the
user).  Then have the user on GNU/Linux do
  ./configure LDFLAGS=-pthread

glad to know the method, i will try it! thank you very much.



and on Cygwin
  ./configure

Depending on what your project copes with, you may want to take a look
at the ACX_PTHREAD macro in the Autoconf Macro Archive:
http://autoconf-archive.cryp.to/acx_pthread.html

Hope that helps.

Cheers,
Ralf



--
woody

then sun rose thinly from the sea and the old man could see the other
boats, low on the water and well in toward the shore, spread out
across the current.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]