Skip to contentSkip to conversation

czmq: fix static build

PATCH New Baruch Siach 2 participants 2 messages Nov 23, 2014 – Nov 24, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 czmq: fix static build

libstdc++ may also need -lm.

Fixes:
http://autobuild.buildroot.net/results/aab/aab80285c54641fd7c217cdd45c4593e5c3a66c5/

---
 package/czmq/czmq.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/czmq/czmq.mk +1 -1
index 9a127265e398..25f67d521237 100644
@@ -19,7 +19,7 @@ CZMQ_LICENSE_FILES = LICENSE
 CZMQ_CONF_ENV = ac_cv_prog_czmq_have_asciidoc=no
 
 ifeq ($(BR2_PREFER_STATIC_LIB),y)
-CZMQ_CONF_OPTS += LIBS=-lstdc++
+CZMQ_CONF_OPTS += LIBS="-lstdc++ -lm"
 endif
 
 define CZMQ_CREATE_CONFIG_DIR
Signature · 1 line
2.1.3
#1 lore raw

PATCH 1/1 czmq: fix static build

Dear Baruch Siach,

Quoted 9 lines · Baruch Siach

libstdc++ may also need -lm.

Fixes:
http://autobuild.buildroot.net/results/aab/aab80285c54641fd7c217cdd45c4593e5c3a66c5/

---
 package/czmq/czmq.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

I really wish all those libraries would be using pkg-config instead...

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com