diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2013-10-30 16:03:31 -0300 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2013-10-30 22:46:18 +0100 |
commit | 339a4880821d8a574deb5f3c490411d9dd4a29e7 (patch) | |
tree | 4b966c061ad95dc0c17e82bc1bcb55e03d6089ba /package/cjson/cjson.mk | |
parent | 9b0e9c83022deac95c85d8f7526b16e420f0b6c8 (diff) |
cjson: link with libm, unavailable for static
Link with libm as stated in the README, fixes:
http://autobuild.buildroot.net/results/57f/57fc124e14263ee2447e20a5b910ed3ae0a5b7db/
Also disable the package for static builds since it doesn't work that
way.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/cjson/cjson.mk')
-rw-r--r-- | package/cjson/cjson.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/cjson/cjson.mk b/package/cjson/cjson.mk index 7e1d72df8..2093b02d7 100644 --- a/package/cjson/cjson.mk +++ b/package/cjson/cjson.mk @@ -12,7 +12,8 @@ CJSON_LICENSE = MIT CJSON_LICENSE_FILES = LICENSE define CJSON_BUILD_CMDS - cd $(@D) && $(TARGET_CC) $(TARGET_CFLAGS) -shared -fPIC cJSON.c -o libcJSON.so + cd $(@D) && $(TARGET_CC) $(TARGET_CFLAGS) -shared -fPIC -lm \ + cJSON.c -o libcJSON.so endef define CJSON_INSTALL_STAGING_CMDS |