Skip to content

fix: simplify RPATH, remove GIT_SHALLOW for pinned hash#24

Merged
0xeb merged 2 commits intomainfrom
work
Mar 12, 2026
Merged

fix: simplify RPATH, remove GIT_SHALLOW for pinned hash#24
0xeb merged 2 commits intomainfrom
work

Conversation

@0xeb
Copy link
Member

@0xeb 0xeb commented Mar 12, 2026

Summary

  • Remove GIT_SHALLOW TRUE from fastmcpp FetchContent — shallow clones can't resolve pinned commit SHAs
  • Simplify macOS/Linux RPATH to @executable_path/ / $ORIGIN only, matching the SDK's GNU make convention. Removes hardcoded $IDASDK/src/bin which could resolve to stub dylibs instead of real runtime libraries

Closes #21

Test plan

  • Build: cmake --build build/cli --target idasql_cli -j8
  • Verify RPATH: otool -l $IDABIN/idasql | grep -A2 LC_RPATH shows only @executable_path/

0xeb added 2 commits March 12, 2026 11:35
Shallow clones can't resolve a specific SHA — only branches/tags.
Remove hardcoded $IDASDK/src/bin from RPATH — it can resolve to stub
dylibs instead of real runtime libraries, causing symbol failures when
opening databases.

Now uses only @executable_path/ (macOS) and $ORIGIN (Linux), matching
the SDK's own idalib makefile. The binary deploys to IDABIN via
RUNTIME_OUTPUT_DIRECTORY, so the paths resolve correctly.

Closes #21
@0xeb 0xeb merged commit 94668b1 into main Mar 12, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS: idasql can start but fails to open .i64 when linked against SDK runtime dylibs instead of installed IDA app dylibs

1 participant