[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] tcc: Linux -pthread option sets -D_REENTRANT and -lpthrea
From: |
Henry Kroll |
Subject: |
[Tinycc-devel] tcc: Linux -pthread option sets -D_REENTRANT and -lpthread |
Date: |
Wed, 24 Nov 2010 16:50:12 -0800 |
Added experimental support for -pthread GCC compiler option. It defines
-D_REENTRANT and links with -lpthread (Gee, was it really that easy?)
Added one fixme because these options could be different on ARM.
Man page needs updated.
Rationale:
This makes GTK+-2 applications compile with tcc and $(pkg-config
--cflags --libs gtk+-2.0) which passes the -pthread option to the
compiler. I'm not sure if thread safety is an issue with tcc.
http://www.hpl.hp.com/techreports/2004/HPL-2004-209.pdf
notwithstanding...
Happy Turkey Day!
--henry
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Tinycc-devel] tcc: Linux -pthread option sets -D_REENTRANT and -lpthread,
Henry Kroll <=