libyajl/libyajl-optflags.patch

12 lines
531 B
Diff
Raw Normal View History

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -59,7 +59,7 @@ ELSE (WIN32)
Accepting request 78636 from devel:languages:ruby:extensions - update to 2.0.1 - lth generator flag to allow client to specify they want escaped solidi '/'. issue #28 - lth crash fix when yajl_parse() is never called. issue #27 - additional changes from 2.0.0 - lth YAJL is now ISC licensed: http://en.wikipedia.org/wiki/ISC_license - lth 20-35% (osx and linux respectively) parsing performance improvement attained by tweaking string scanning (idea: @michaelrhanson). - Florian Forster & lth - yajl_tree interface introduced as a higher level interface to the parser (eats JSON, poops a memory representation) - lth require a C99 compiler - lth integers are now represented with long long (64bit+) on all platforms. - lth size_t now used throughout to represent buffer lengths, so you can safely manage buffers greater than 4GB. - gno semantic improvements to yajl's API regarding partial value parsing and trailing garbage - lth new configuration mechanism for yajl, see yajl_config() and yajl_gen_config() - gno more allocation checking in more places - gno remove usage of strtol, replace with custom implementation that cares not about your locale. - lth yajl_parse_complete renamed to yajl_complete_parse. - lth add a switch to validate utf8 strings as they are generated. - lth tests are a lot quieter in their output. - lth addition of a little in tree performance benchmark, OBS-URL: https://build.opensuse.org/request/show/78636 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libyajl?expand=0&rev=13
2011-08-12 11:11:28 +00:00
"${CMAKE_C_FLAGS} -std=c99 -pedantic -Wpointer-arith -Wno-format-y2k -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -Wextra -Wundef -Wwrite-strings -Wold-style-definition -Wredundant-decls -Wno-unused-parameter -Wno-sign-compare -Wmissing-prototypes")
SET(CMAKE_C_FLAGS_DEBUG "-DDEBUG -g")
- SET(CMAKE_C_FLAGS_RELEASE "-DNDEBUG -O2 -Wuninitialized")
+ SET(CMAKE_C_FLAGS_RELEASE "$ENV{OPTFLAGS} -Wuninitialized")
ENDIF (WIN32)