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

static link for the sample http #230

Open
laoshaw opened this issue Apr 16, 2021 · 1 comment
Open

static link for the sample http #230

laoshaw opened this issue Apr 16, 2021 · 1 comment
Assignees
Labels
feature-request Feature requests or enhancements

Comments

@laoshaw
Copy link

laoshaw commented Apr 16, 2021

libhttpserver by default has static enabled but I could not get it to work with the hello sample program due to the fact that, unistring and p11-kit do not provide static libraries.

pkg-config --cflags --libs --static libhttpserver.pc
g++ -O2 -static hello.cpp -lhttpserver -lmicrohttpd -lgnutls -pthread -lgmp -lunistring -lidn2 -latomic -lhogweed -lgmp -lnettle -ltasn1 -lp11-kit
/usr/bin/ld: cannot find -lunistring
/usr/bin/ld: cannot find -lp11-kit

additionally if libhttpserver can support openssl and wolfssl that would be nice, gnutls is so complicated comparing to openssl and wolfssl libraries.

@laoshaw laoshaw added the feature-request Feature requests or enhancements label Apr 16, 2021
@easymoney322
Copy link

easymoney322 commented Dec 10, 2023

I'm affraid you are right. You would need static library of p11-kit, and they do not provide a static version of it, neither you can compile it staticaly yourself. p11-glue/p11-kit#355
So you won't be able to compile the project fully-statically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Feature requests or enhancements
Projects
None yet
Development

No branches or pull requests

3 participants