Thank you for sending your patch. Your patch has been added to the github repository.
Regards,
Nivedita
-----Original Message-----
From: PowerTop [mailto:powertop-bounces@lists.01.org] On Behalf Of Jaroslav Skarvada
Sent: Tuesday, November 10, 2015 7:02 AM
To: powertop(a)lists.01.org
Subject: [Powertop] powertop-2.8 Fedora compile fix
Hi,
thanks for the powertop-2.8 release. In Fedora we have ImplicitDSOLinking [1], 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:
-pthreads
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
Jaroslav
[1]
https://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking