diff --git a/CMakeLists.txt b/CMakeLists.txt index bcc03d2..20c980a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,10 @@ if(NOT LLVM_ENABLE_RTTI) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti") endif() +if (APPLE) + set(LINK_FLAGS "-undefined dynamic_lookup") +endif() + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter") add_library(LLVMObfuscator SHARED Plugin.cpp) @@ -38,7 +42,7 @@ add_library(LLVMObfuscator SHARED Plugin.cpp) target_include_directories(LLVMObfuscator PRIVATE ${CMAKE_SOURCE_DIR}) target_include_directories(LLVMObfuscator PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) -target_link_libraries(LLVMObfuscator LLVMCore LLVMSupport) +target_link_libraries(LLVMObfuscator LLVMCore LLVMSupport LLVMInterpreter) option(BUILD_DUMMY "Build dummy plugin" OFF) if(BUILD_DUMMY)