From 2a4f4caf141ea34542a1355277622285e7478a5a Mon Sep 17 00:00:00 2001 From: Thomas A Date: Wed, 17 May 2023 10:00:56 -0700 Subject: [PATCH] Copy Over Build Script For "libkxld" Taken From LKM Branch --- libkern/kxld/CMakeLists.txt | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 libkern/kxld/CMakeLists.txt diff --git a/libkern/kxld/CMakeLists.txt b/libkern/kxld/CMakeLists.txt new file mode 100644 index 0000000..4217d56 --- /dev/null +++ b/libkern/kxld/CMakeLists.txt @@ -0,0 +1,32 @@ +project(libkxld) + +add_compile_definitions( + PRIVATE +) + +set(DYLIB_INSTALL_NAME "/usr/lib/system/libkxld.dylib") +add_darling_library(libkxld + kxld.c + kxld_array.c + kxld_copyright.c + kxld_demangle.c + kxld_dict.c + kxld_kext.c + kxld_object.c + kxld_reloc.c + kxld_sect.c + kxld_seg.c + kxld_splitinfolc.c + kxld_srcversion.c + kxld_sym.c + kxld_symtab.c + kxld_util.c + kxld_uuid.c + kxld_versionmin.c + kxld_vtable.c +) +make_fat(libkxld) +target_link_libraries(libkxld system cxxabi) +set_target_properties(libkxld PROPERTIES OUTPUT_NAME "kxld") + +install(TARGETS libkxld DESTINATION libexec/darling/usr/lib/system) \ No newline at end of file