Commit b0c2b2f9 by Jason Thorpe Committed by Jason Thorpe

netbsd.h (LIB_SPEC): Include the appropriate pthread library if -pthread is specified.

* config/netbsd.h (LIB_SPEC): Include the appropriate pthread
library if -pthread is specified.

From-SVN: r57164
parent a0494c05
2002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
* config/netbsd.h (LIB_SPEC): Include the appropriate pthread
library if -pthread is specified.
2002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
* config.gcc (*-*-netbsd*): Set thread_file to 'posix'
for --enable-threads=yes and --enable-threads=posix.
......
......@@ -77,14 +77,23 @@ Boston, MA 02111-1307, USA. */
#endif /* NETBSD_NATIVE */
/* Provide a LIB_SPEC appropriate for NetBSD. Just select the appropriate
libc, depending on whether we're doing profiling; if `-posix' is specified,
link against the appropriate libposix first. Don't include libc when
linking a shared library. */
/* Provide a LIB_SPEC appropriate for NetBSD. Here we:
1. Select the appropriate set of libs, depending on whether we're
profiling.
2. Include the pthread library if -pthread is specified.
3. Include the posix library if -posix is specified. */
#undef LIB_SPEC
#define LIB_SPEC \
"%{posix: \
"%{pthread: \
%{!p: \
%{!pg:-lpthread}} \
%{p:-lpthread_p} \
%{pg:-lpthread_p}} \
%{posix: \
%{!p: \
%{!pg:-lposix}} \
%{p:-lposix_p} \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment