Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Compiling on Elementary OS

Renato Foot Guimarães Costallat edited this page May 7, 2020 · 1 revision

Problems

Something was causing the -march to be incorrect, causing inclusion of files from different platforms such as IA32.

https://github.com/opentibiabr/otservbr-global/pull/1116

https://github.com/opentibiabr/otservbr-global/issues/1115

Change this on CMakeLists.txt

  -set(CMAKE_CXX_FLAGS_RELEASE   "-Wall -Werror -pipe -fvisibility=hidden -march=native -O2")

  +set(CMAKE_CXX_FLAGS_RELEASE  "-Wall -Werror -pipe -fvisibility=hidden -O2")
  +
  +if (NOT CCACHE_PROGRAM)
  +  set(CMAKE_CXX_FLAGS_RELEASE  "${CMAKE_CXX_FLAGS_RELEASE} -march=native")
  +endif()