Skip to content

Commit 9a8aca5

Browse files
committed
Fix ffi-libponyc-standalone link failure on OpenBSD
PR #5026 fixed the identical missing zlib issue in pony-doc but missed this test, which has the same `use "lib:z" if not (windows or openbsd)` guard. LLVM's lld references zlib symbols (adler32, adler32_combine) for ELF section compression, so OpenBSD needs explicit -lz just like other POSIX platforms.
1 parent 70b0bf0 commit 9a8aca5

File tree

1 file changed

+1
-1
lines changed
  • test/full-program-tests/ffi-libponyc-standalone

1 file changed

+1
-1
lines changed

test/full-program-tests/ffi-libponyc-standalone/main.pony

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use "lib:ponyc-standalone"
2-
use "lib:z" if not (windows or openbsd)
2+
use "lib:z" if not windows
33
use "lib:c++" if osx
44

55
use @token_new[NullablePointer[TokenStub]](token_id: TokenId)

0 commit comments

Comments
 (0)