mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix(readline)
linux doesn't show the ncurses linkage
This commit is contained in:
parent
45ba1857c3
commit
2e88145e8c
1 changed files with 14 additions and 5 deletions
|
@ -14,12 +14,21 @@ dependencies:
|
|||
invisible-island.net/ncurses: ^6
|
||||
|
||||
build:
|
||||
script: |
|
||||
./configure --prefix={{ prefix }} --with-curses
|
||||
make --jobs {{ hw.concurrency }} install
|
||||
script:
|
||||
- ./configure --prefix={{ prefix }} --with-curses
|
||||
- make --jobs {{ hw.concurrency }} install
|
||||
env:
|
||||
linux:
|
||||
# otherwise it weirdly omits the linkage
|
||||
# https://stackoverflow.com/a/65623630
|
||||
LDFLAGS: '$LDFLAGS -lncursesw'
|
||||
|
||||
test:
|
||||
script: |
|
||||
cc -lreadline -lncurses fixture.c
|
||||
- run: ldd {{prefix}}/lib/libreadline.so | grep ncurses
|
||||
if: linux
|
||||
- run: otool -L {{prefix}}/lib/libreadline.dylib | grep ncurses
|
||||
if: darwin
|
||||
- cc -lreadline -lncurses fixture.c
|
||||
- |
|
||||
test "$(echo "Hello, World!" | ./a.out)" = "test> Hello, World!
|
||||
Hello, World!\\n"
|
||||
|
|
Loading…
Reference in a new issue