Accepting request 259759 from home:bekun:devel

update to 2.1.0 and simplify cmake calls by using according macros

OBS-URL: https://build.opensuse.org/request/show/259759
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libyajl?expand=0&rev=25
This commit is contained in:
Ismail Dönmez
2014-11-05 11:10:59 +00:00
committed by Git OBS Bridge
parent 06d82a0c09
commit 363f9b66cc
6 changed files with 59 additions and 43 deletions

View File

@@ -1,13 +1,12 @@
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -59,7 +59,7 @@ ELSE (WIN32)
diff -aur lloyd-yajl-66cb08c_orig/CMakeLists.txt lloyd-yajl-66cb08c/CMakeLists.txt
--- lloyd-yajl-66cb08c_orig/CMakeLists.txt 2014-03-19 05:58:29.000000000 +0100
+++ lloyd-yajl-66cb08c/CMakeLists.txt 2014-11-01 11:03:10.921290296 +0100
@@ -59,7 +59,7 @@
"${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)
ENDIF (WIN32)