Skip to contentSkip to conversation

log4cxx: needs threads

PATCH Superseded spdawson at gmail.com 2 participants 2 messages Nov 11, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 log4cxx: needs threads

From: Simon Dawson <[email protected]>

Fixes build failures such as the following.

http://autobuild.buildroot.net/results/7b73901d9e8b5098cd96b54d292bb3ffffb3fe37/

---
 package/log4cxx/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
package/log4cxx/Config.in +3 -2
index 86d6a1d..1785232 100644
@@ -5,11 +5,12 @@ config BR2_PACKAGE_LOG4CXX
 	# apr really needs shared library support
 	depends on !BR2_PREFER_STATIC_LIB
 	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_THREADS
 	help
 	  Apache log4cxx is a logging framework for C++ patterned
 	  after Apache log4j.
 
 	  http://apache.linux-mirror.org/logging/log4cxx/0.10.0
 
-comment "log4cxx needs a toolchain w/ C++"
-	depends on !BR2_INSTALL_LIBSTDCPP
+comment "log4cxx needs a toolchain w/ C++, threads"
+	depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS)
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 log4cxx: needs threads

Hi Simon,

Quoted 21 lines · On Mon, Nov 11, 2013 at 2:14 PM, <[email protected]> wrote:

From: Simon Dawson <[email protected]>

Fixes build failures such as the following.

http://autobuild.buildroot.net/results/7b73901d9e8b5098cd96b54d292bb3ffffb3fe37/

---
 package/log4cxx/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
package/log4cxx/Config.in +1 -0
index 86d6a1d..1785232 100644
@@ -5,11 +5,12 @@ config BR2_PACKAGE_LOG4CXX
        # apr really needs shared library support
        depends on !BR2_PREFER_STATIC_LIB
        depends on BR2_INSTALL_LIBSTDCPP
+       depends on BR2_TOOLCHAIN_HAS_THREADS
        help

package/log4cxx/Config.in config BR2_PACKAGE_LOG4CXX

Quoted 10 lines
package/log4cxx/Config.in +2 -3
          Apache log4cxx is a logging framework for C++ patterned
          after Apache log4j.
 
          http://apache.linux-mirror.org/logging/log4cxx/0.10.0
 
-comment "log4cxx needs a toolchain w/ C++"
-       depends on !BR2_INSTALL_LIBSTDCPP
+comment "log4cxx needs a toolchain w/ C++, threads"
+       depends on !(BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS)
--

Maybe you could take the opportunity to update the comment for the dynamic library support needed. See the buildroot manual (git version) for details.

Thanks,
Thomas