Skip to content

Commit

Permalink
Put python code in libprocman,not pstack itself.
Browse files Browse the repository at this point in the history
  • Loading branch information
peadar committed Sep 14, 2023
1 parent b3e33a2 commit d06105a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ endif()
set(VERSION_TAG ${GIT_TAG} CACHE STRING "Version tag (defaults to git commit)")
message(STATUS "Version: ${VERSION_TAG}")

add_definitions("-DVERSION=${VERSION_TAG}")
add_definitions(-DVERSION=${VERSION_TAG} -D_FORTIFY_SOURCE=2)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS ON)
Expand Down Expand Up @@ -128,13 +128,12 @@ add_library(dwelf ${LIBTYPE}
${lzmasrc}
)

add_library(procman ${LIBTYPE} dead.cc self.cc live.cc process.cc proc_service.cc
logproc.cc dwarfproc.cc procdump.cc ${stubsrc} ${pysrc})

add_library(procman ${LIBTYPE} dead.cc self.cc live.cc process.cc proc_service.cc logproc.cc
dwarfproc.cc procdump.cc ${stubsrc})
add_executable(canal canal.cc)

add_executable(canal canal.cc ${pysrc})

add_executable(${PSTACK_BIN} pstack.cc ${pysrc})
add_executable(${PSTACK_BIN} pstack.cc)

target_link_libraries(procman ${LTHREADDB} dwelf dl)
target_link_libraries(${PSTACK_BIN} dwelf procman)
Expand Down Expand Up @@ -168,7 +167,7 @@ if ((NOT (Python3_Development_FOUND)) AND PYTHON3)
message(WARNING "no python3 support found")
endif()

if (NOT (Python2_Development_FOUND))
if (NOT (Python2_Development_FOUND) AND PYTHON2)
message(WARNING "no python2 support found")
endif()

Expand Down

0 comments on commit d06105a

Please sign in to comment.