package/libcap-ng: disable pthread support on nommu
PATCH 1/1 package/libcap-ng: disable pthread support on nommu
Fixes https://autobuild.buildroot.net/results/9c40c86a42882a6d56eb6d6d1418781a980b6f8f/
The pthread support uses pthread_atfork(), which is not available on nommu:
cap-ng.c: In function 'init_lib':
cap-ng.c:225:9: error: implicit declaration of function 'pthread_atfork';
did you mean 'pthread_join'? [-Wimplicit-function-declaration]
So disable pthread support on nommu to fix that.
--- package/libcap-ng/libcap-ng.mk | 5 +++++ 1 file changed, 5 insertions(+)
package/libcap-ng/libcap-ng.mk +5 -0
@@ -14,6 +14,11 @@ LIBCAP_NG_INSTALL_STAGING = YES LIBCAP_NG_CONF_ENV = ac_cv_prog_swig_found=no LIBCAP_NG_CONF_OPTS = --without-python3 +# pthread support uses pthread_atfork, which is not available on nommu +ifneq ($(BR2_USE_MMU),y) +LIBCAP_NG_CONF_ENV += ac_cv_header_pthread_h=no +endif + HOST_LIBCAP_NG_CONF_ENV = ac_cv_prog_swig_found=no HOST_LIBCAP_NG_CONF_OPTS = --without-python3
Signature · 6 lines
2.39.5 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 11 lines · Peter Korsgaard
Fixes https://autobuild.buildroot.net/results/9c40c86a42882a6d56eb6d6d1418781a980b6f8f/
The pthread support uses
pthread_atfork(), which is not available on nommu:
cap-ng.c: In function 'init_lib':
cap-ng.c:225:9: error: implicit declaration of function 'pthread_atfork';
did you mean 'pthread_join'? [-Wimplicit-function-declaration]So disable pthread support on nommu to fix that.
Signed-off-by Peter Korsgaard <[email protected]>
Applied to master, thanks.
Regards,
Arnout
Quoted 10 lines
--- package/libcap-ng/libcap-ng.mk | 5 +++++ 1 file changed, 5 insertions(+)package/libcap-ng/libcap-ng.mk +0
-0@@ -14,6 +14,11 @@ LIBCAP_NG_INSTALL_STAGING = YES LIBCAP_NG_CONF_ENV = ac_cv_prog_swig_found=no
package/libcap-ng/libcap-ng.mk LIBCAP_NG_INSTALL_STAGING = YES · line 24
Quoted 10 lines
package/libcap-ng/libcap-ng.mk +5
-0LIBCAP_NG_CONF_OPTS = --without-python3 +# pthread support uses pthread_atfork, which is not available on nommu +ifneq ($(BR2_USE_MMU),y) +LIBCAP_NG_CONF_ENV += ac_cv_header_pthread_h=no +endif + HOST_LIBCAP_NG_CONF_ENV = ac_cv_prog_swig_found=no HOST_LIBCAP_NG_CONF_OPTS = --without-python3
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot