Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jun 2019 06:57:03 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r504004 - head/games/leela-zero/files
Message-ID:  <201906120657.x5C6v3Ut036555@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Wed Jun 12 06:57:02 2019
New Revision: 504004
URL: https://svnweb.freebsd.org/changeset/ports/504004

Log:
  games/leela-zero: Fix build on some systems by removing -flto
  
  -flto causes failures: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238514
  
  Reported by:	fallout

Modified:
  head/games/leela-zero/files/patch-CMakeLists.txt

Modified: head/games/leela-zero/files/patch-CMakeLists.txt
==============================================================================
--- head/games/leela-zero/files/patch-CMakeLists.txt	Wed Jun 12 06:52:51 2019	(r504003)
+++ head/games/leela-zero/files/patch-CMakeLists.txt	Wed Jun 12 06:57:02 2019	(r504004)
@@ -9,6 +9,22 @@
  # Required Packages
  set(Boost_MIN_VERSION "1.58.0")
  set(Boost_USE_MULTITHREADED ON)
+@@ -70,13 +72,13 @@ if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_T
+ endif(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
+ 
+ if(GccSpecificFlags)
+-  set(GCC_COMPILE_FLAGS "-Wall -Wextra -ffast-math -flto -march=native")
++  set(GCC_COMPILE_FLAGS "-Wall -Wextra -ffast-math -march=native") # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238514
+   set(GCC_DISABLED_WARNING_COMPILE_FLAGS "-Wno-ignored-attributes -Wno-maybe-uninitialized \
+       -Wno-mismatched-tags")
+   set(GCC_FLAGS "${GCC_COMPILE_FLAGS} ${GCC_DISABLED_WARNING_COMPILE_FLAGS}")
+   set(CMAKE_CXX_FLAGS_DEBUG "${GCC_FLAGS} -g -Og")
+   set(CMAKE_CXX_FLAGS_RELEASE "${GCC_FLAGS} -g -O3 -DNDEBUG")
+-  set(CMAKE_EXE_LINKER_FLAGS "-flto -g")
++  set(CMAKE_EXE_LINKER_FLAGS "-g") # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238514
+ endif(GccSpecificFlags)
+ 
+ if(USE_CPU_ONLY)
 @@ -86,7 +88,7 @@ if(USE_HALF)
    add_definitions(-DUSE_HALF)
  endif()



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906120657.x5C6v3Ut036555>