mirror of
https://github.com/sstefani/mtrace.git
synced 2025-12-06 16:56:41 +08:00
Merge pull request #2 from xmw/xenial
Minor fixes on Ubuntu 16.04 with newer gcc and old CMake.
This commit is contained in:
commit
c6c446f1c2
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.9)
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
set(MT "mtrace-ng")
|
||||
project(${MT} C)
|
||||
|
||||
@ -17,7 +17,7 @@ include(CheckFunctionExists)
|
||||
include(CheckIncludeFile)
|
||||
include(CheckIncludeFiles)
|
||||
include(CheckSymbolExists)
|
||||
include(CheckIPOSupported)
|
||||
#include(CheckIPOSupported)
|
||||
|
||||
include(${CMAKE_SOURCE_DIR}/Utilities.cmake)
|
||||
|
||||
@ -53,7 +53,7 @@ set(CMAKE_EXE_LINKER_FLAGS_LTO "${CMAKE_LINKER_FLAGS_RELEASE} -flto")
|
||||
|
||||
add_compile_options(-Wall -Wextra -Werror -Werror -Wno-implicit-fallthrough)
|
||||
|
||||
check_ipo_supported(RESULT IPO)
|
||||
#check_ipo_supported(RESULT IPO)
|
||||
#if (IPO)
|
||||
# set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||
#endif()
|
||||
|
||||
@ -663,7 +663,10 @@ static void signal_exit(int sig)
|
||||
signal(SIGINT, SIG_IGN);
|
||||
signal(SIGTERM, SIG_IGN);
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-result"
|
||||
write(pipefd[1], &signum, 1);
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
static int scan_process(struct process *process)
|
||||
|
||||
2
debian/control
vendored
2
debian/control
vendored
@ -2,7 +2,7 @@ Source: mtrace-ng
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Maintainer: Package Maintainers <Package-Maintainers@debian.com>
|
||||
Build-Depends: debhelper (>= 8.0.0), autotools-dev, binutils-dev, libreadline6-dev, libselinux1-dev, libtinfo-dev, libelfg0-dev
|
||||
Build-Depends: debhelper (>= 8.0.0), autotools-dev, binutils-dev, libreadline6-dev, libselinux1-dev, libtinfo-dev, libelf-dev, zlib1g-dev, libncurses5-dev, libiberty-dev
|
||||
Standards-Version: 3.9.4
|
||||
Vcs-Git: https://github.com/sstefani/mtrace.git
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user