From: Olaf Hering <olaf@aepfle.de>
To: xen-devel@lists.xensource.com
Subject: [PATCH] use ncurses-config to find all curses related libs
Date: Tue, 22 Nov 2011 12:35:07 +0100 [thread overview]
Message-ID: <20111122113507.GA28412@aepfle.de> (raw)
After a split of libtinfo from libncurses in openSuSE Factory the tools
will not link anymore. In the URL below it was suggested to use
'ncurses-config --libs' to find the correct linker options. But
ncurses-config does not exist neither in SLES11 nor in openSuSE. So
check for both ncurses5-config and ncurses-config, if the latter happens
to exist in other environments.
With this change xen-unstable tools build succeeds again in SLES11 and
the latest openSuSE development branch.
http://lists.opensuse.org/opensuse-packaging/2011-11/msg00055.html
Signed-off-by: Olaf Hering <olaf@aepfle.de>
diff -r 0b1ac7b3ee4d config/StdGNU.mk
--- a/config/StdGNU.mk
+++ b/config/StdGNU.mk
@@ -67,7 +67,7 @@ XEN_CONFIG_DIR = $(CONFIG_DIR)/xen
XEN_SCRIPT_DIR = $(XEN_CONFIG_DIR)/scripts
SOCKET_LIBS =
-CURSES_LIBS = -lncurses
+CURSES_LIBS = $(shell if ! ncurses5-config --libs 2>/dev/null ; then ncurses-config --libs ; fi)
PTHREAD_LIBS = -lpthread
UTIL_LIBS = -lutil
DLOPEN_LIBS = -ldl
next reply other threads:[~2011-11-22 11:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-22 11:35 Olaf Hering [this message]
2011-11-24 18:38 ` [PATCH] use ncurses-config to find all curses related libs Ian Jackson
2011-11-24 18:49 ` Olaf Hering
2011-11-24 18:53 ` Ian Jackson
2011-11-24 19:15 ` Olaf Hering
2011-11-24 19:20 ` Ian Jackson
2011-11-24 19:37 ` Olaf Hering
2011-11-29 12:50 ` [PATCH v2] " Olaf Hering
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111122113507.GA28412@aepfle.de \
--to=olaf@aepfle.de \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.