This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/26683] New: sparc-solaris likes -pthreads, linux likes -pthread
- From: "leisner at rochester dot rr dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Mar 2006 18:39:33 -0000
- Subject: [Bug c/26683] New: sparc-solaris likes -pthreads, linux likes -pthread
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Did a search -- didn't see this...I'm porting threaded software between
solaris and linux and came across this...
bash2 :2 mleisner@santa 01:30:15; gcc -v
Reading specs from
/usr/local/gcc-3.4.5/lib/gcc/sparc-sun-solaris2.8/3.4.5/specs
Configured with: /usr/local/src/gnu/gcc-3.4.5/configure
--prefix=/usr/local/gcc-3.4.5 --disable-multilib --with-as=/usr/local/bin/as
--with-ld=/usr/local/bin/ld --enable-threads=posix --disable-nls
--enable-languages=c,c++
Thread model: posix
gcc version 3.4.5
bash2 :2 mleisner@santa 01:30:18; gcc -pthread
gcc: unrecognized option `-pthread'
gcc: no input files
bash2 :2 mleisner@santa 01:30:21; gcc -pthreads
gcc: no input files
:1 mleisner@linuxcom-00 01:30:44; gcc -v
Reading specs from /u/mleisner/lib/gcc/i686-pc-linux-gnu/3.4.5/specs
Configured with: ../../src/gcc-3.4.5/configure --prefix=/u/mleisner
--enable-__cxa_atexit --disable-nls --enable-languages=c,c++
Thread model: posix
gcc version 3.4.5
:1 mleisner@linuxcom-00 01:30:46; gcc -pthread
gcc: no input files
:1 mleisner@linuxcom-00 01:30:53; gcc -pthreads
gcc: unrecognized option `-pthreads'
gcc: no input files
Its different in the spec files -- its spelled -pthread in the documentation...
--
Summary: sparc-solaris likes -pthreads, linux likes -pthread
Product: gcc
Version: 3.4.5
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: leisner at rochester dot rr dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26683