$NetBSD: patch-CMakeLists.txt,v 1.2 2023/01/20 18:37:29 fcambus Exp $ Disable precompiled headers. cc1plus: warning: cmake_pch.hxx.gch: had text segment at different address --- CMakeLists.txt.orig 2023-01-20 07:03:58.000000000 +0000 +++ CMakeLists.txt @@ -384,9 +384,6 @@ if(${CMAKE_VERSION} VERSION_GREATER_EQUA target_precompile_headers(mold PRIVATE "$<$:${CMAKE_SOURCE_DIR}/elf/mold.h>" "$<$:${CMAKE_SOURCE_DIR}/macho/mold.h>") - else() - target_precompile_headers(mold PRIVATE - "$<$:${CMAKE_SOURCE_DIR}/elf/mold.h>") endif() # ccache needs this flag along with `sloppiness = pch_defines,time_macros`