[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GUILE_CFLAGS contains warning options
From: |
Ken Raeburn |
Subject: |
Re: GUILE_CFLAGS contains warning options |
Date: |
Sun, 20 Feb 2011 21:52:56 -0500 |
On Feb 20, 2011, at 17:50, Bruno Haible wrote:
> For the PTHREAD_CFLAGS it is more tricky: On most platforms you can use
> "-lpthread" instead of "-pthread", and all compilers support -l options.
> But on OSF/1, the options for using threads are compiler dependent:
> * -pthread for cc,
> * -lpthread for gcc.
There are other platforms where compiling for thread support changes more than
just adding a library. For example, in NetBSD 5.0, it looks like stdio.h
defines getc() in a non-thread-safe way if _REENTRANT and _PTHREADS (which get
defined by "gcc -pthread") are not defined. So even with gcc, just replacing
"-pthread" with "-lpthread" isn't good enough.
Ken
- GUILE_CFLAGS contains warning options, Bruno Haible, 2011/02/19
- Re: GUILE_CFLAGS contains warning options, Bruno Haible, 2011/02/19
- Re: GUILE_CFLAGS contains warning options, Andy Wingo, 2011/02/20
- Re: GUILE_CFLAGS contains warning options, Bruno Haible, 2011/02/20
- Re: GUILE_CFLAGS contains warning options,
Ken Raeburn <=
- Re: GUILE_CFLAGS contains warning options, Ludovic Courtès, 2011/02/22
- Re: GUILE_CFLAGS contains warning options, Bruno Haible, 2011/02/22
- Re: GUILE_CFLAGS contains warning options, Ludovic Courtès, 2011/02/23
- Re: GUILE_CFLAGS contains warning options, Bruno Haible, 2011/02/23
- Re: GUILE_CFLAGS contains warning options, Ludovic Courtès, 2011/02/27
- Re: GUILE_CFLAGS contains warning options, Bruno Haible, 2011/02/27
- Re: GUILE_CFLAGS contains warning options, Ludovic Courtès, 2011/02/27