[packages/sysdig] do not set -ggdb unconditionally

glen glen at pld-linux.org
Sun Jul 26 18:59:22 CEST 2015


commit 87555a2e9ad103a94c889e368b8f379f09600d0e
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Jul 26 19:56:16 2015 +0300

    do not set -ggdb unconditionally

 buildflags.patch | 13 +++++++++++++
 sysdig.spec      |  2 ++
 2 files changed, 15 insertions(+)
---
diff --git a/sysdig.spec b/sysdig.spec
index d3cb49d..79e83d9 100644
--- a/sysdig.spec
+++ b/sysdig.spec
@@ -29,6 +29,7 @@ License:	GPL v2
 Group:		Applications/System
 Source0:	https://github.com/draios/sysdig/archive/%{version}/%{pname}-%{version}.tar.gz
 # Source0-md5:	5fe96a3a0fd98b2157a40cb29af41afc
+Patch0:		buildflags.patch
 URL:		http://www.sysdig.org/
 BuildRequires:	rpmbuild(macros) >= 1.701
 %if %{with userspace}
@@ -128,6 +129,7 @@ This package contains Linux module.\
 
 %prep
 %setup -q -n %{pname}-%{version}
+%patch0 -p1
 
 # we need just obj-m from the file
 cp driver/Makefile{.in,}
diff --git a/buildflags.patch b/buildflags.patch
new file mode 100644
index 0000000..0e2e5cd
--- /dev/null
+++ b/buildflags.patch
@@ -0,0 +1,13 @@
+--- sysdig-0.1.101/CMakeLists.txt~	2015-06-03 21:58:51.000000000 +0300
++++ sysdig-0.1.101/CMakeLists.txt	2015-07-26 19:54:44.060408718 +0300
+@@ -37,8 +37,8 @@
+ 
+ 	set(SYSDIG_DEBUG_FLAGS "-D_DEBUG")
+ 
+-	set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -ggdb")
+-	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -ggdb --std=c++0x")
++	set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
++	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall --std=c++0x")
+ 
+ 	set(CMAKE_C_FLAGS_DEBUG "${SYSDIG_DEBUG_FLAGS}")
+ 	set(CMAKE_CXX_FLAGS_DEBUG "${SYSDIG_DEBUG_FLAGS}")
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sysdig.git/commitdiff/87555a2e9ad103a94c889e368b8f379f09600d0e



More information about the pld-cvs-commit mailing list