Cleanup the build script 39/115439/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 20 Feb 2017 03:44:07 +0000 (12:44 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 20 Feb 2017 03:44:07 +0000 (12:44 +0900)
Change-Id: Ib6e4acfe8ccf6f42f2f417a750d32b67dbc5918a
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
CMakeLists.txt
packaging/context-service.spec

index 74abc03..e00aed2 100644 (file)
@@ -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)
index 57494ee..6b7080c 100644 (file)
@@ -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