$NetBSD: patch-CMakeLists.txt,v 1.5 2023/11/05 16:59:36 fcambus Exp $ Disable precompiled headers. cc1plus: warning: cmake_pch.hxx.gch: had text segment at different address --- CMakeLists.txt.orig 2023-11-04 06:44:32.000000000 +0000 +++ CMakeLists.txt @@ -403,9 +403,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`