package/empty - fix build failure
PATCH 1/1 package/empty - fix build failure
Fixes http://autobuild.buildroot.net/results/e07/e07aec9a839e89b7452b13bf5445164530e27414/
"empty" fails to build if _POSIX_SEMAPHORES is not defined, which is the case on a toolchain with no threading support.
--- package/empty/Config.in | 4 ++++ 1 file changed, 4 insertions(+)
package/empty/Config.in +4 -0
@@ -1,7 +1,11 @@ config BR2_PACKAGE_EMPTY bool "empty" depends on BR2_USE_MMU # uses fork() + depends on BR2_TOOLCHAIN_HAS_THREADS help Run processes and applications under pseudo-terminal (PTY) sessions. http://empty.sourceforge.net/ + +comment "empty needs a toolchain w/ threads" + depends on BR2_TOOLCHAIN_HAS_THREADS
Signature · 1 line
2.4.3
PATCH 1/1 package/empty - fix build failure
Hi Brendan,
Brendan Heading wrote,
Quoted 4 lines
Fixes http://autobuild.buildroot.net/results/e07/e07aec9a839e89b7452b13bf5445164530e27414/
"empty" fails to build if
_POSIX_SEMAPHORESis not defined, which is the case on a toolchain with no threading support.
Threads are not required for SysV semaphores. I have sent a patch fixing the build with a toolchain without threads, but I got no response on that.
http://patchwork.ozlabs.org/patch/493343/
best regards
Waldemar
PATCH 1/1 package/empty - fix build failure
Quoted 5 lines · Waldemar Brodkorb
Threads are not required for SysV semaphores. I have sent a patch fixing the build with a toolchain without threads, but I got no response on that.
Agreed, that looks like a much better solution.
Brendan