diff --git a/CMakeLists.txt b/CMakeLists.txt index 2aefdecad794f1051289c6b4eb33e9280a283882..d27d2ec26ea48c167d709d45fd9e5216efa88035 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ endif () set(CMAKE_INSTALL_PREFIX $ENV{dcc_install_prefix}) -set(CMAKE_C_FLAGS "-std=c99 ${CMAKE_C_FLAGS} -D__FILE_NAME__='\"$(notdir $(subst .o,,$(abspath $@)))\"'" ) +set(CMAKE_C_FLAGS "-std=c99 ${CMAKE_C_FLAGS}" ) add_compile_options(-fPIC -Wall -MMD -fno-strict-aliasing -fsigned-char -fms-extensions -lpthread) add_compile_definitions(_GNU_SOURCE _LARGEFILE64_SOURCE KNL_PREFIX _REENTRANT __PERF_STAT__) diff --git a/src/storage/gstor/CMakeLists.txt b/src/storage/gstor/CMakeLists.txt index a84ffe857e496f19593058d72d5c412138658e14..e1bbd852a55c8ffce478188bbfd46f456753e778 100644 --- a/src/storage/gstor/CMakeLists.txt +++ b/src/storage/gstor/CMakeLists.txt @@ -109,7 +109,7 @@ set(3rd_libzstd "zstd") set(3rd_libssl "ssl") set(3rd_lib_crypto "crypto") -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -g -ldl -pthread -D__FILE_NAME__='\"$(notdir $(subst .o,,$(abspath $@)))\"'") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -g -ldl -pthread") add_compile_options(-fno-common) add_compile_options(-Wtrampolines) add_compile_options(-freg-struct-return) diff --git a/src/storage/gstor/zekernel/CMakeLists.txt b/src/storage/gstor/zekernel/CMakeLists.txt index c9457fd1b75a64516defa820f9bc1507e6ef71f5..0abcd134f1edee6bf5f4b44d993fc6bde279f066 100644 --- a/src/storage/gstor/zekernel/CMakeLists.txt +++ b/src/storage/gstor/zekernel/CMakeLists.txt @@ -110,7 +110,7 @@ set(3rd_libssl "ssl") set(3rd_lib_crypto "crypto") set(3rd_libpcre "pcre") -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -g -ldl -pthread -D__FILE_NAME__='\"$(notdir $(subst .o,,$(abspath $@)))\"'") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -g -ldl -pthread") add_compile_options(-fno-common) add_compile_options(-Wtrampolines) add_compile_options(-freg-struct-return)