pantry/projects/zlib.net/package.yml
Jacob Heider 1614e01c30
fix(zlib) (#4452)
* fix(zlib)

boost complaining about -fPIC:

https://github.com/pkgxdev/pantry/actions/runs/7226847979/job/19693299131

* don't include newlines
2023-12-15 17:05:44 -05:00

23 lines
430 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/aarch64:
CFLAGS: '$CFLAGS -fPIC'
test:
script: |
cc test.c -lz
OUT=$(echo "$INPUT" | ./a.out | ./a.out -d)
test "$OUT" = "$INPUT"
env:
INPUT: Hello, World!