summaryrefslogtreecommitdiffstats
path: root/source.local/d/cmake/cmake.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/d/cmake/cmake.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/d/cmake/cmake.SlackBuild')
-rwxr-xr-xsource.local/d/cmake/cmake.SlackBuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/source.local/d/cmake/cmake.SlackBuild b/source.local/d/cmake/cmake.SlackBuild
index 27b74f5..bb99e30 100755
--- a/source.local/d/cmake/cmake.SlackBuild
+++ b/source.local/d/cmake/cmake.SlackBuild
@@ -88,7 +88,7 @@ else
WITH_QTGUI=" "
fi
-if [ "$ARCH" = "armv7hl" ]; then
+if ncursesw5-config --libs |grep -q tinfo ; then
export LDFLAGS="-ltinfo $LDFLAGS"
fi