summaryrefslogtreecommitdiffstats
path: root/source.local/ap/powertop
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/powertop
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/powertop')
-rwxr-xr-xsource.local/ap/powertop/powertop.SlackBuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/source.local/ap/powertop/powertop.SlackBuild b/source.local/ap/powertop/powertop.SlackBuild
index e11ed85..0c52e5a 100755
--- a/source.local/ap/powertop/powertop.SlackBuild
+++ b/source.local/ap/powertop/powertop.SlackBuild
@@ -81,7 +81,10 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-LDFLAGS=" -ltinfo -lresolv -lz " \
+export LDFLAGS=" -lresolv -lz "
+if ncursesw5-config --libs |grep -q tinfo ; then
+ export LDFLAGS=" -ltinfo $LDFLAGS"
+fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \