From 4c10c70ad1be629687d717021fc21817d929475d Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sat, 13 Apr 2013 15:58:52 +0200 Subject: Make requirement of adding '-ltinfo' to LDFLAGS independent of ARCH. The ARM port split libtinfo off libncursesw to allow for smaller binaries. However this requires the addition of '-ltinfo' to some linker commands, since modern binutils require explicit linking of all used libraries (DSO). In order to make this geneally applicable, not just for ARCH=armv7hl, I made a few changes in SlackBuild scripts. --- source.local/ap/htop/htop.SlackBuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source.local/ap/htop/htop.SlackBuild') diff --git a/source.local/ap/htop/htop.SlackBuild b/source.local/ap/htop/htop.SlackBuild index 76f82c2..5a8fec1 100755 --- a/source.local/ap/htop/htop.SlackBuild +++ b/source.local/ap/htop/htop.SlackBuild @@ -82,8 +82,10 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -CFLAGS="$SLKCFLAGS" \ -LDFLAGS="-ltinfo" \ +if ncursesw5-config --libs |grep -q tinfo ; then + export LDFLAGS="-ltinfo $LDFLAGS" +fi +export CFLAGS="$SLKCFLAGS" ./configure \ --prefix=/usr \ --sysconfdir=/etc \ -- cgit v1.2.3-65-gdbad