From 37f5f1b71f24c9aed624735b344be172d467c8cf Mon Sep 17 00:00:00 2001 From: Jérôme Duval Date: Sat, 01 Feb 2014 14:02:45 +0100 Subject: [PATCH] gcc: define GOMP_SELF_SPECS for Haiku. * avoids -lpthread when using -fopenmp. --- gcc/gcc/config/haiku.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gcc/gcc/config/haiku.h b/gcc/gcc/config/haiku.h index 8a83556..258e154 100644 --- a/gcc/gcc/config/haiku.h +++ b/gcc/gcc/config/haiku.h @@ -68,6 +68,14 @@ #undef ENDFILE_SPEC #define ENDFILE_SPEC "crtend.o%s crtn.o%s" +/* Every program on Haiku links against libroot which contains the pthread + routines, so there's no need to explicitly call out when doing threaded + work. */ +#undef GOMP_SELF_SPECS +#define GOMP_SELF_SPECS "" +#undef GTM_SELF_SPECS +#define GTM_SELF_SPECS "" + #ifdef HYBRID_SECONDARY /* For a secondary compiler on a hybrid system, use alternative search paths.*/ #define INCLUDE_DEFAULTS \ -- gitore 0.2.2