Fixes configure error due to missing c++
checking for library containing pthread_create... no
configure: error: libpthread is required but was not found
Quote from config.log:
configure:21552: checking for library containing pthread_create
configure:21583: false -o conftest -Os conftest.cpp -lintl >&5
[...]
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=false
using this defconfig
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_PACKAGE_POWERTOP=y
Please note the number of .cpp files belonging to powertop
output/build/powertop-2.7$ find -iname *.cpp | wc -l
59
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
[Thomas:
- fix commit title
- powertop wants libintl unconditionally, so make sure
BR2_PACKAGE_GETTEXT is selected when BR2_NEEDS_GETTEXT is set, and
add gettext to the dependencies.
- add missing comment about thread dependency.
- add missing dependency on host-pkgconf, without which powertop
cannot find libnl.
- patch src/Makefile.am to not pass -fstack-protector, which fails
to build if the toolchain does not have SSP support.
- rename patch powertop-autotune.patch to confirm to the patch
naming convention.]
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>