pantry/projects/github.com/besser82/libxcrypt/package.yml
Marc Seitz ed8b734fd8
+libxcrypt (#785)
Requires -L because the standard library path has precedence on Linux and usually linux has its own lib crypt.

I experimented with trying to use the enable-compat-symlinks (that make xcrypt symlinks) but this option only works if you enable “obsolete modes” which leads to believe it is not wise to do it manually either as other build tools will likely make assumptions based on the filenames.

---------

Co-authored-by: Max Howell <mxcl@me.com>
2023-03-21 15:44:35 -04:00

30 lines
752 B
YAML

distributable:
url: https://github.com/besser82/libxcrypt/releases/download/v{{version}}/libxcrypt-{{version}}.tar.xz
strip-components: 1
versions:
github: besser82/libxcrypt/releases/tags
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
freedesktop.org/pkg-config: ~0.29
perl.org: '*'
script: |
./configure $ARGS
make --jobs {{ hw.concurrency }} install
env:
ARGS:
- --prefix="{{prefix}}"
- --disable-valgrind
- --disable-failure-tokens
test:
dependencies:
tea.xyz/gx/cc: c99
script: |
cc fixture.c -lcrypt -L{{prefix}}/lib
./a.out
# ^^ we nee to add the -L because system lib paths come first on Linux
# and most linuxes have a (arcaic) libcrypt.so in /lib