Skip to content

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

Merged
G4Vi merged 2 commits into
mainfrom
static-libextism-cpp
Nov 3, 2023
Merged

feat: static libextism-cpp / pkg-config#4
G4Vi merged 2 commits into
mainfrom
static-libextism-cpp

Conversation

@G4Vi

@G4Vi G4Vi commented Nov 3, 2023

Copy link
Copy Markdown
Contributor

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

@zshipko zshipko left a comment

Copy link
Copy Markdown
Contributor

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
@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