summaryrefslogtreecommitdiffstats
path: root/source.local/ap/htop/htop.SlackBuild
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2013-04-13 15:58:52 +0200
committer Eric Hameleers <alien@slackware.com>2013-04-13 15:58:52 +0200
commit4c10c70ad1be629687d717021fc21817d929475d (patch)
tree2c2f17ce9f480629e855645911d09a048fe93d68 /source.local/ap/htop/htop.SlackBuild
parent38b143640e8b80dccd097c7161da0f50c691dd97 (diff)
downloadalienarm-4c10c70ad1be629687d717021fc21817d929475d.tar.gz
alienarm-4c10c70ad1be629687d717021fc21817d929475d.tar.xz
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.
Diffstat (limited to 'source.local/ap/htop/htop.SlackBuild')
-rwxr-xr-xsource.local/ap/htop/htop.SlackBuild6
1 files changed, 4 insertions, 2 deletions
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 \