diff options
author | CoprDistGit <infra@openeuler.org> | 2023-10-13 02:00:29 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-10-13 02:00:29 +0000 |
commit | c3fa4f91d2c8a9acf960b1de9d01bd2606aec2f2 (patch) | |
tree | 9a3451e474e48622b9539199725bd410e948f088 /libyajl-optflags.patch | |
parent | 3bc4abba4e6c10986ad2a02f62eae70d752f1037 (diff) |
automatic import of libyajlopeneuler22.03_LTS
Diffstat (limited to 'libyajl-optflags.patch')
-rw-r--r-- | libyajl-optflags.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libyajl-optflags.patch b/libyajl-optflags.patch new file mode 100644 index 0000000..c3d3882 --- /dev/null +++ b/libyajl-optflags.patch @@ -0,0 +1,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) + + |