lifting-bits / remill

Library for lifting machine code to LLVM bitcode
Apache License 2.0
1.22k stars 142 forks source link

Fix build with system LLVM #638

Closed mrexodia closed 10 months ago

mrexodia commented 1 year ago

When using a vanilla LLVM there were some issues with the build (when using system libraries):

  1. Certain libraries were missing, this is fixed by simply linking to all available LLVM libs
  2. Without GFLAGS_USE_TARGET_NAMESPACE the target gflags::gflags does not exist, not sure what vcpkg is doing different there, perhaps an older version?
  3. The LLVM include directories are not mentioned anywhere so remill fails to compile

These issues were found when trying a superbuild without vcpkg.

mrexodia commented 10 months ago

Will open a new PR later.