summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/zypper/zypper/rpm5-flag.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/zypper/zypper/rpm5-flag.patch')
-rw-r--r--meta/recipes-extended/zypper/zypper/rpm5-flag.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/recipes-extended/zypper/zypper/rpm5-flag.patch b/meta/recipes-extended/zypper/zypper/rpm5-flag.patch
new file mode 100644
index 0000000000..4403869cd2
--- /dev/null
+++ b/meta/recipes-extended/zypper/zypper/rpm5-flag.patch
@@ -0,0 +1,16 @@
1It's required by libzypp headers
2
3Signed-off-by: Qing He <qing.he@intel.com>
4
5diff --git a/CMakeLists.txt b/CMakeLists.txt
6index 6b040a6..84431c8 100644
7--- a/CMakeLists.txt
8+++ b/CMakeLists.txt
9@@ -15,6 +15,7 @@ INCLUDE( ${ZYPPER_SOURCE_DIR}/VERSION.cmake )
10 SET( VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" )
11 ADD_DEFINITIONS( -D_FILE_OFFSET_BITS=64 )
12 ADD_DEFINITIONS( -DVERSION="${VERSION}" )
13+ADD_DEFINITIONS( -D_RPM_5 )
14
15 SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O2 -Wall -Woverloaded-virtual -fstack-protector" )
16 SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O2 -Wall -fstack-protector" )