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

thirdparty: fix compilation of programs using miniz.h on OpenBSD #22254

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

lcheylus
Copy link
Contributor

Fix #22253


Tests OK on OpenBSD/amd64 with tcc

$ ./v -showcc cmd/tools/vcompress.v
> C compiler cmd: '/home/fox/dev/vlang.git/thirdparty/tcc/tcc.exe' '@/tmp/v_1000/vcompress.01J82Q6J8AJ8YDG0VEP89BQA6S.tmp.c.rsp'
> C compiler response file "/tmp/v_1000/vcompress.01J82Q6J8AJ8YDG0VEP89BQA6S.tmp.c.rsp":
  -o "/home/fox/dev/vlang.git/cmd/tools/vcompress" -D GC_BUILTIN_ATOMIC=1 -D GC_THREADS=1 -I "/usr/local/include" -I "/home/fox/dev/vlang.git/thirdparty/zip" "/tmp/v_1000/vcompress.01J82Q6J8AJ8YDG0VEP89BQA6S.tmp.c" -std=c99 -D_DEFAULT_SOURCE -bt25 "/usr/local/lib/libgc.a" -lgc -lpthread

$ ./cmd/tools/vcompress
v compress <type> <in> <out>
supported types: zlib

Signed-off-by: Laurent Cheylus <foxy@free.fr>
@spytheman spytheman merged commit 65504ae into vlang:master Sep 18, 2024
62 checks passed
@lcheylus lcheylus deleted the openbsd-miniz branch September 18, 2024 17:05
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.

Error when using thirdparty/zip/miniz.h on OpenBSD with tcc
2 participants