Thank you for sending your patch. Your patch has been added to the github repository.
From: PowerTop [mailto:email@example.com] On Behalf Of Jaroslav Skarvada
Sent: Tuesday, November 10, 2015 7:02 AM
Subject: [Powertop] powertop-2.8 Fedora compile fix
thanks for the powertop-2.8 release. In Fedora we have ImplicitDSOLinking , so for
pthreads usage it needs to link with the -lpthread. But the included ax_pthread.m4 macro
find -pthreads CFLAGS, not LDFLAGS. From the GCC manual page:
Add support for multithreading using the POSIX threads library.
This option sets flags for both the preprocessor and linker.
This means that you need to add the PTHREAD_CFLAGS in order to compile powertop on systems
with ImplicitDSOLinking and recent GCC. The attached patch do it and fixed the problem for
me in Fedora
thanks & regards