summaryrefslogtreecommitdiffstats
path: root/source.local/l/libcdio/libcdio.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/l/libcdio/libcdio.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 '')
-rwxr-xr-xsource.local/l/libcdio/libcdio.SlackBuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/source.local/l/libcdio/libcdio.SlackBuild b/source.local/l/libcdio/libcdio.SlackBuild
index 3cabb85..eb61b09 100755
--- a/source.local/l/libcdio/libcdio.SlackBuild
+++ b/source.local/l/libcdio/libcdio.SlackBuild
@@ -83,8 +83,10 @@ find . \
-exec chmod 644 {} \;
# Configure:
-CFLAGS="$SLKCFLAGS" \
-LDFLAGS="-ltinfo" \
+if ncursesw5-config --libs |grep -q tinfo ; then
+ export LDFLAGS="-ltinfo"
+fi
+export CFLAGS="$SLKCFLAGS"
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \