LukeShortCloud / swgemu-server-packages

SWGEmu server Linux system packages that are easy to build and are reproducible.
GNU General Public License v3.0
2 stars 1 forks source link

Makefile generic build patch no longer works #5

Closed LukeShortCloud closed 5 years ago

LukeShortCloud commented 5 years ago

The generic build patch no longer applies. There have been restructuring of directories in both this project as well as SWGEmu. This should be investigated more.

LukeShortCloud commented 5 years ago

Looks like enabling a CMake flag should do the trick now.

(MMOCoreORB)$ grep -- -march=native CMakeLists.txt 
option(ENABLE_NATIVE "Enables -march=native compiler option" ON)
       CHECK_CXX_COMPILER_FLAG(-march=native CxxFlagMnative)
            set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")

I think something like cmake -DENABLE_NATIVE="OFF" should do the trick.