Fix build problems

The first one is -lpthread versus -pthread, on newer distros -lpthread doesn't
always work while -pthread works all the time (and my manpages says to link
with -pthread anyway).

The second problem is generating dependencies with cc -MM, our buildsystem
quarrels when passing headers to that and it's IMHO right (as gcc -MM generates
dependencies for c source(s)).

Signed-off-by: Andi Kleen <ak@linux.intel.com>
1 file changed