summaryrefslogtreecommitdiff
path: root/libyajl-optflags.patch
blob: c3d388273d8bba57e0b68088fd3ff100723d158a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)