diff options
author | Sunmin Lee <sunm.lee@samsung.com> | 2016-12-27 16:44:49 +0900 |
---|---|---|
committer | Sunmin Lee <sunm.lee@samsung.com> | 2016-12-27 18:48:34 +0900 |
commit | 19a4af3a67bdaaf2987c318d02e9fb0260fb7c57 (patch) | |
tree | 203c91450cfff02b0101aa23257d3a851ddea842 | |
parent | cb172a80debe9debc352651aad2a84051a067c74 (diff) | |
download | crash-worker-19a4af3a67bdaaf2987c318d02e9fb0260fb7c57.tar.gz crash-worker-19a4af3a67bdaaf2987c318d02e9fb0260fb7c57.tar.bz2 crash-worker-19a4af3a67bdaaf2987c318d02e9fb0260fb7c57.zip |
Separate package dependencies of crash-stacksubmit/tizen_3.0/20161227.102645
According to experimental variable, exclude unused package
dependencies from crash-worker.spec.
+ Bug fix:
"crash-stack: Make ptrace callstack feature selective"
Change-Id: If8746a74fb937f7929538a995d6f1cf392e19bd4
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
-rw-r--r-- | packaging/crash-worker.spec | 4 | ||||
-rw-r--r-- | src/crash-manager/CMakeLists.txt | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/packaging/crash-worker.spec b/packaging/crash-worker.spec index a7dddc6..8a8735b 100644 --- a/packaging/crash-worker.spec +++ b/packaging/crash-worker.spec @@ -25,9 +25,11 @@ BuildRequires: cmake %if %{with sys_assert} BuildRequires: pkgconfig(libunwind) %endif +%if "%{TIZEN_FEATURE_PTRACE_CALLSTACK}" == "on" BuildRequires: libelf-devel libelf BuildRequires: libebl-devel libebl BuildRequires: libdw-devel libdw +%endif %ifarch %{arm} BuildRequires: pkgconfig(libunwind-ptrace) %endif @@ -39,6 +41,8 @@ Requires(post): coreutils Requires(post): tar Requires(post): gzip Requires: zip +Requires: libelf +Requires: libdw # If you need support for core dump files (see building below), # you should add this dependency # Requires: libebl diff --git a/src/crash-manager/CMakeLists.txt b/src/crash-manager/CMakeLists.txt index 361ac34..24ead7e 100644 --- a/src/crash-manager/CMakeLists.txt +++ b/src/crash-manager/CMakeLists.txt @@ -1,6 +1,10 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT(crash-manager C) +IF(TIZEN_FEATURE_PTRACE_CALLSTACK STREQUAL on) + ADD_DEFINITIONS(-DTIZEN_FEATURE_PTRACE_CALLSTACK) +ENDIF() + INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src) SET(CRASH_MANAGER_SRCS crash-manager.c |