Copy Over Build Script For "libkxld"

Taken From LKM Branch
This commit is contained in:
Thomas A 2023-05-17 10:00:56 -07:00
parent 4d0d5857b9
commit 2a4f4caf14

View File

@ -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)