From b384b8162f107febcb1a279d2836b51b1acabeda Mon Sep 17 00:00:00 2001 From: Brandon Bergren Date: Sat, 18 Aug 2018 02:04:04 +0000 Subject: Use the same linker script trick as used on the .so files on the .a files to redirect to the wide version of the static libraries. Fixes an issue with `llvm-config --system-libs --link-static` pulling in curses instead of tinfo. --- system/ncurses/APKBUILD | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/system/ncurses/APKBUILD b/system/ncurses/APKBUILD index eb57797a1..eaa4508bf 100644 --- a/system/ncurses/APKBUILD +++ b/system/ncurses/APKBUILD @@ -2,7 +2,7 @@ pkgname=ncurses pkgver=6.1_p20180609 _ver=${pkgver%_p*}-${pkgver#*_p} -pkgrel=4 +pkgrel=5 pkgdesc="Console display library" url="https://invisible-island.net/ncurses/ncurses.html" arch="all" @@ -66,9 +66,10 @@ package() { dev() { default_dev - # force link against *w.so + # force link against *w.so and *w.a for lib in ncurses ncurses++ form panel menu tinfo; do echo "INPUT(-l${lib}w)" > "$subpkgdir"/lib/lib${lib}.so + echo "INPUT(-l${lib}w)" > "$subpkgdir"/lib/lib${lib}.a ln -s ${lib}w.pc "$subpkgdir"/usr/lib/pkgconfig/${lib}.pc done # link curses -> ncurses -- cgit v1.2.3-70-g09d2