- Install pkgconfig into libdir instead of datadir with libyajl-pkgconfig.patch - Use autosetup and make_build macro OBS-URL: https://build.opensuse.org/request/show/688389 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libyajl?expand=0&rev=31
12 lines
531 B
Diff
12 lines
531 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -59,7 +59,7 @@ ELSE (WIN32)
|
|
"${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)
|
|
|
|
|