mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
15d6dc7315
llvm17 breaks shlib support. this fixes that.
25 lines
534 B
YAML
25 lines
534 B
YAML
distributable:
|
|
url: https://zlib.net/zlib-{{version.raw}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: madler/zlib/tags
|
|
|
|
build:
|
|
script: |
|
|
./configure --prefix="{{prefix}}"
|
|
make --jobs {{ hw.concurrency }} install
|
|
env:
|
|
linux:
|
|
CFLAGS:
|
|
- -fPIC
|
|
# undefined symbol errors in newer llvms prevent building shared libs
|
|
- -Wl,--undefined-version
|
|
|
|
test:
|
|
script: |
|
|
cc test.c -lz
|
|
OUT=$(echo "$INPUT" | ./a.out | ./a.out -d)
|
|
test "$OUT" = "$INPUT"
|
|
env:
|
|
INPUT: Hello, World!
|