From 1dc785264146335f3d69d5c0a707eee1106e303b Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Mon, 24 May 2010 11:12:03 +0000 Subject: Link against libc_p and libpthread_p when -p or -pg is specified, like we did for gcc3. ok espie@ --- gnu/gcc/gcc/config/openbsd-libpthread.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gnu') 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}}}" + -- cgit v1.2.3