Il 26/03/2014 00:28, Tobias Burnus ha scritto:
Paolo Bonzini wrote:
Il 11/03/2014 07:42, Tobias Burnus ha scritto:
+XPCFLAGS=""
+CFLAGS="$CFLAGS -pthread"
+AC_LINK_IFELSE(
...
+ [XPCFLAGS=" -Wc,-pthread"],
XPCFLAGS is dead, I think?
Yes - contrary to libgomp, from which I have taken that code block. I
have now removed it.
Also, should -pthread be included in the spec too?
Regarding -pthreads: That should already be included via gcc/gcc.c:
+#define CILK_SELF_SPECS "%{fcilkplus: -pthread}"
static const char *const driver_self_specs[] = {
...
CILK_SELF_SPECS
};
Updated patch below (nongenerated libcilkrts only).
Tobias
Ok.
Paolo