Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: static libextism-cpp / pkg-config #4

Merged
merged 2 commits into from
Nov 3, 2023
Merged

Conversation

G4Vi
Copy link
Contributor

@G4Vi G4Vi commented Nov 3, 2023

The Extism cpp host sdk may now be linked with its deps (except for system deps) statically.

pkg-config --static --libs extism-cpp-static
-L/usr/local/lib -l:libextism-cpp.a -l:libjsoncpp.a -l:libextism.a -lm
g++ -o example example.cpp `pkg-config --static --libs extism-cpp-static`
ldd example
        linux-vdso.so.1 (0x00007ffc54dcd000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007efc59000000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007efc59319000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007efc592f9000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007efc58c00000)
        /lib64/ld-linux-x86-64.so.2 (0x00007efc5aba2000)

README.md is updated with linking instructions.

@G4Vi G4Vi requested a review from zshipko November 3, 2023 03:36
Copy link
Contributor

@zshipko zshipko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@G4Vi G4Vi merged commit de5608c into main Nov 3, 2023
2 checks passed
@G4Vi G4Vi deleted the static-libextism-cpp branch November 6, 2023 22:17
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.

2 participants