Comments (3)
Thanks for the patch!
Could this be added to yajl?
from yajl.
The correct fix for this is the following, that compiles yajl with -lm when uclibc is detected, instead of having to add it to every program that depends on yajl:
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a1134d1..c3a4fad 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -54,6 +54,11 @@ ADD_LIBRARY(yajl_s STATIC ${SRCS} ${HDRS} ${PUB_HDRS}) ADD_LIBRARY(yajl SHARED ${SRCS} ${HDRS} ${PUB_HDRS}) +IF(EXISTS "/usr/include/bits/uClibc_config.h") + target_link_libraries(yajl m) + target_link_libraries(yajl_s m) +ENDIF(EXISTS "/usr/include/bits/uClibc_config.h") + #### setup shared library version number SET_TARGET_PROPERTIES(yajl PROPERTIES DEFINE_SYMBOL YAJL_SHARED
from yajl.
Unfortunately, that is not the correct fix because it does not work when cross-compiling. The initial proposal works fine, though.
from yajl.
Related Issues (20)
- yajl_gen_double uses a comma instead of a point HOT 4
- Memory leak with yajl_tree_parse in yajl version 2.1.0 HOT 2
- Is there any possibility to convert JSON to XML in YAJL ver 2.1.0 HOT 2
- Integrating with OSS-Fuzz
- new line by the end of error messages HOT 3
- Hi,Is the yajl component being maintained? HOT 2
- Invalid "state" of buffer when decoding string HOT 1
- Data ownership not clear in documentation
- Missing break in switch
- yajl.rb - (# TODO: this code smells, any ideas?) - "ArgumentError"
- Downlaod tar fails HOT 1
- CVE-2022-24795 HOT 3
- maintaine in openEuler-BaseService/yajl
- legacy-install-failure with pip in Mac M1 chip, unable to pip install yajl HOT 1
- `2.1.0`: the same name used as branch name and git tag HOT 1
- CVE-2017-16516 HOT 1
- How to cross compile yajl for qnx?
- memory leak in yajl_tree_parse function. HOT 13
- Projet dead ? HOT 5
- update cmake version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yajl.