diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-05-24 11:12:03 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-05-24 11:12:03 +0000 |
commit | 1dc785264146335f3d69d5c0a707eee1106e303b (patch) | |
tree | d25d30e42b1349e18b69f4e40e3a6a683aecce19 /gnu | |
parent | da4d4258b2618bbc8c7c42c07e4f37bdcc4ce3b9 (diff) |
Link against libc_p and libpthread_p when -p or -pg is specified, like we did
for gcc3.
ok espie@
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/gcc/gcc/config/openbsd-libpthread.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/gcc/gcc/config/openbsd-libpthread.h b/gnu/gcc/gcc/config/openbsd-libpthread.h index 6503a44897e..41292631389 100644 --- a/gnu/gcc/gcc/config/openbsd-libpthread.h +++ b/gnu/gcc/gcc/config/openbsd-libpthread.h @@ -19,4 +19,5 @@ along with GNU CC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#define OBSD_LIB_SPEC "%{!shared:%{pthread:-lpthread} -lc}" +#define OBSD_LIB_SPEC "%{!shared:%{pthread:-lpthread%{p:_p}%{!p:%{pg:_p}}}} %{!shared:-lc%{p:_p}%{!p:%{pg:_p}}}" + |