From ce8367b800fa1231c48a6ee933bc477258b80210 Mon Sep 17 00:00:00 2001 From: Mu-Woong Lee Date: Mon, 20 Feb 2017 12:44:07 +0900 Subject: [PATCH] Cleanup the build script Change-Id: Ib6e4acfe8ccf6f42f2f417a750d32b67dbc5918a Signed-off-by: Mu-Woong Lee --- CMakeLists.txt | 1 - packaging/context-service.spec | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 74abc03..e00aed2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,6 @@ MESSAGE("Sources: ${SRCS}") ADD_DEFINITIONS(-O2 -Wall -fPIC -fPIE -fdata-sections -ffunction-sections -fvisibility=hidden) ADD_DEFINITIONS(-DLOG_TAG="CONTEXT") -ADD_DEFINITIONS(-D_LIBDIR_="${LIBDIR}") SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fPIC -pie -Wl,--as-needed -Wl,--gc-section -Wl,--print-gc-section") INCLUDE(FindPkgConfig) diff --git a/packaging/context-service.spec b/packaging/context-service.spec index 57494ee..6b7080c 100644 --- a/packaging/context-service.spec +++ b/packaging/context-service.spec @@ -31,11 +31,10 @@ export CXXFLAGS+=" -Wno-empty-body -fomit-frame-pointer -fno-optimize-sibling-ca export CXXFLAGS+=" -fno-strict-aliasing -fno-unroll-loops -fsigned-char -fstrict-overflow" export CXXFLAGS+=" -Wnon-virtual-dtor -std=c++0x" -cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIBDIR=%{_libdir} -make %{?jobs:-j%jobs} +%cmake . +make %{?_smp_mflags} %install -rm -rf %{buildroot} %make_install mkdir -p %{buildroot}%{_unitdir}/default.target.wants -- 2.34.1