You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/parmetis/files/parmetis-4.0.3_p20230326-re...

48 lines
1.4 KiB

diff --git a/conf/gkbuild.cmake b/conf/gkbuild.cmake
index ec91224..5e66546 100644
--- a/conf/gkbuild.cmake
+++ b/conf/gkbuild.cmake
@@ -28,17 +28,6 @@ endif(CYGWIN)
if(CMAKE_COMPILER_IS_GNUCC)
# GCC opts.
set(GK_COPTIONS "${GK_COPTIONS} -std=c99 -fno-strict-aliasing")
-# -march=native is not a valid flag on PPC:
-if(CMAKE_SYSTEM_PROCESSOR MATCHES "power|ppc|powerpc|ppc64|powerpc64" OR (APPLE AND CMAKE_OSX_ARCHITECTURES MATCHES "ppc|ppc64"))
- set(GK_COPTIONS "${GK_COPTIONS} -mtune=native")
-else()
- set(GK_COPTIONS "${GK_COPTIONS} -march=native")
-endif()
- if(NOT MINGW)
- set(GK_COPTIONS "${GK_COPTIONS} -fPIC")
- endif(NOT MINGW)
-# GCC warnings.
- set(GK_COPTIONS "${GK_COPTIONS} -Werror -Wall -pedantic -Wno-unused-function -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unknown-pragmas -Wno-unused-label")
elseif(${CMAKE_C_COMPILER_ID} MATCHES "Sun")
# Sun insists on -xc99.
set(GK_COPTIONS "${GK_COPTIONS} -xc99")
@@ -65,24 +54,6 @@ if(OPENMP)
endif(OPENMP)
-# Add various definitions.
-if(GDB)
- set(GK_COPTS "${GK_COPTS} -g")
- set(GK_COPTIONS "${GK_COPTIONS} -Werror")
-else()
- set(GK_COPTS "-O3")
-endif(GDB)
-
-
-if(DEBUG)
- set(GK_COPTS "-Og")
- set(GK_COPTIONS "${GK_COPTIONS} -DDEBUG")
-endif(DEBUG)
-
-if(GPROF)
- set(GK_COPTS "-pg")
-endif(GPROF)
-
if(NOT ASSERT)
set(GK_COPTIONS "${GK_COPTIONS} -DNDEBUG")
endif(NOT ASSERT)