shithub: duke3d

Download patch

ref: 1cf7481bdb49685eeaf51d90902e4fd1ded44cb4
parent: af0e8d3a7c012c2c6c64cfe34b6175ac67ec5a45
author: Tanguy Fautre <tanguy@fautre.com>
date: Wed Jul 27 06:31:20 EDT 2022

Fix link error on latest GCC versions

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,6 +46,9 @@
 	# Without this option, game will crash at random places when compiled with -O2 or-O3.
 	add_compile_options("-fno-strict-aliasing") 
 
+	# Duke 3D source code has a few redefinitions of global types in its headers.
+	add_compile_options("-fcommon")
+
 endif ()
 
 if(CMAKE_SIZEOF_VOID_P EQUAL 8)