# #bsd-assym #Program to extract struct offsets for the FreeBSD 11.2 kernel from the output #of the C compiler so that the assembler code can use those symbols. This is #done by extracting symbols from an object file generated by the C compiler. #We use LLVM libraries to do this in a portable manner - BSD original code #relies on the "nm" command to do this (a very "unixy" thing to do). # ExternalProject_Add ( bsd-assym PREFIX ${CMAKE_INSTALL_PREFIX} SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/src CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH= -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE} DEPENDS llvm )