czmq: fix static build
authorBaruch Siach <baruch@tkos.co.il>
Sun, 23 Nov 2014 14:46:46 +0000 (16:46 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 24 Nov 2014 21:27:07 +0000 (22:27 +0100)
libstdc++ may also need -lm.

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

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/czmq/czmq.mk

index 9a127265e39825e64fde171881ae0ac158d3c980..25f67d521237f435bf729552e04d3903a397dfb4 100644 (file)
@@ -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