Skip to contentSkip to conversation

cc-tool: fix static build problem with boost regex

PATCH New Thomas Petazzoni 2 participants 2 messages May 5, 2015 – May 7, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cc-tool: fix static build problem with boost regex

The boost.m4 logic is a bit crappy, and needs some help to know that boost_regex needs the pthread library.

Fixes:

http://autobuild.buildroot.org/results/69a/69aff0b9d0ac8fe08e1d2f7ffb691f6a8fc8693b/

---
 package/cc-tool/cc-tool.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/cc-tool/cc-tool.mk +6 -0
index 7312bd3..3a3f85a 100644
@@ -14,4 +14,10 @@ CC_TOOL_DEPENDENCIES = boost libusb
 # Configure script "discovers" boost in /usr/local if not given explicitly
 CC_TOOL_CONF_OPTS = --with-boost=$(STAGING_DIR)/usr
 
+# Help boost.m4 find the Boost Regex library, which needs the pthread
+# library, but isn't detected using a modern (pkg-config) mechanism.
+ifeq ($(BR2_STATIC_LIBS),y)
+CC_TOOL_CONF_ENV += LIBS="-lpthread"
+endif
+
 $(eval $(autotools-package))
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/1 cc-tool: fix static build problem with boost regex

Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

The boost.m4 logic is a bit crappy, and needs some help to know that boost_regex needs the pthread library.

Fixes:

http://autobuild.buildroot.org/results/69a/69aff0b9d0ac8fe08e1d2f7ffb691f6a8fc8693b/

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard