$NetBSD: patch-CMakeLists.txt,v 1.3 2023/07/27 12:39:20 fcambus Exp $ Disable precompiled headers. cc1plus: warning: cmake_pch.hxx.gch: had text segment at different address --- CMakeLists.txt.orig 2023-07-26 10:40:11.000000000 +0000 +++ CMakeLists.txt @@ -394,9 +394,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`