Skip to content

Bsd sysroot#3284

Merged
lerno merged 9 commits into
c3lang:masterfrom
ManuLinares:bsd-sysroot
May 30, 2026
Merged

Bsd sysroot#3284
lerno merged 9 commits into
c3lang:masterfrom
ManuLinares:bsd-sysroot

Conversation

@ManuLinares
Copy link
Copy Markdown
Member

@ManuLinares ManuLinares commented May 30, 2026

  • add c3c ... --bsd-sysroot <DIR> for cross-compilation
  • update miniz to latest (sorry, not needed but nice for security purposes)
  • added zlib_compat.c shim to provide the zlib functions needed for LLVM
    zlib dependency. This completely replaces zlib dependency from LLVM, (except libcurl still links to zlib dynamically, this is a maybe TODO: build our own libcurl)

NOTE: https://github.com/c3lang/llvm-for-c3/releases/tag/llvm_22.1.8 need to be made "Latest Label" release and revert or remove test llvm with zlib before merging


MacOS:

$ llvm-otool -L c3c
c3c:
	/usr/lib/libcurl.4.dylib (compatibility version 7.0.0, current version 9.0.0)
	/usr/lib/libxar.1.dylib (compatibility version 1.0.0, current version 1.3.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1351.0.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1900.180.0)

Windows:

$ objdump -p c3c.exe | grep 'DLL Name'
	DLL Name: WINHTTP.dll
	DLL Name: ADVAPI32.dll
	DLL Name: ntdll.dll
	DLL Name: KERNEL32.dll
	DLL Name: OLEAUT32.dll

@lerno
Copy link
Copy Markdown
Collaborator

lerno commented May 30, 2026

Thank you!

@lerno lerno merged commit 04b62a5 into c3lang:master May 30, 2026
16 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.

2 participants