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

Ssl: makefile add static mbedtls build #713

Merged
merged 7 commits into from
Sep 30, 2024

Conversation

yuxiaomao
Copy link
Collaborator

Allow building ssl.hdll with embedded mbedtls source from hashlink instead of system lib, with make SSL_STATIC=1.

This code is useful when the build machine does not have a recent version of mbedtls, and would like to use the one in hashlink - which might be more recent and more secure (e.g. for game distribution reason).

Tested on Linux and seems to work. Don't know how the mbedtls license works here, but it's already the case when building on Windows.

Makefile Outdated Show resolved Hide resolved
libs/ssl/Makefile Outdated Show resolved Hide resolved
@yuxiaomao
Copy link
Collaborator Author

Thank you for the review and suggestions^^ I also think it's proper to use the main Makefile (and avoid copying cflags/lflags around). I can probably also reduce mbedtls .o occupying all that lines similar to PCRE/STD (previously I was just replacing all from the cmakelists)

Makefile Show resolved Hide resolved
@yuxiaomao yuxiaomao changed the title Ssl: add makefile for static mbedtls build Ssl: makefile add static mbedtls build Sep 30, 2024
@yuxiaomao yuxiaomao merged commit c43a068 into HaxeFoundation:master Sep 30, 2024
10 checks passed
@yuxiaomao yuxiaomao deleted the dev-sslmakefile branch September 30, 2024 06:40
GlassySundew pushed a commit to GlassySundew/hashlink that referenced this pull request Nov 23, 2024
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