From: Blake Jones Date: Mon, 5 Nov 2012 19:01:57 +0000 (+1600) Subject: [PATCH v2 04/10] configure: check for -Wl,-rpath (Solaris support) X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=7061a82cac7fe19181c752460725698e669a4624;p=notmuch-archives.git [PATCH v2 04/10] configure: check for -Wl,-rpath (Solaris support) --- diff --git a/b2/aae8b93df6661c340eb0b210c3c357fa4964e6 b/b2/aae8b93df6661c340eb0b210c3c357fa4964e6 new file mode 100644 index 000000000..d528d98a1 --- /dev/null +++ b/b2/aae8b93df6661c340eb0b210c3c357fa4964e6 @@ -0,0 +1,76 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id B1844429E33 + for ; Mon, 5 Nov 2012 11:02:26 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id vNHT3TC-cuCS for ; + Mon, 5 Nov 2012 11:02:25 -0800 (PST) +Received: from foo.net (70-36-235-136.dsl.static.sonic.net [70.36.235.136]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 79AF7429E30 + for ; Mon, 5 Nov 2012 11:02:23 -0800 (PST) +Received: from foo.net (localhost [127.0.0.1]) + by foo.net (8.14.5+Sun/8.14.5) with ESMTP id qA5J2Lbu019106; + Mon, 5 Nov 2012 11:02:21 -0800 (PST) +Received: (from blakej@localhost) + by foo.net (8.14.5+Sun/8.14.5/Submit) id qA5J2L5j019105; + Mon, 5 Nov 2012 11:02:21 -0800 (PST) +From: Blake Jones +To: notmuch@notmuchmail.org +Subject: [PATCH v2 04/10] configure: check for -Wl,-rpath (Solaris support) +Date: Mon, 5 Nov 2012 11:01:57 -0800 +Message-Id: <1352142123-18286-5-git-send-email-blakej@foo.net> +X-Mailer: git-send-email 1.7.3.2 +In-Reply-To: <1352142123-18286-1-git-send-email-blakej@foo.net> +References: <1352142123-18286-1-git-send-email-blakej@foo.net> +X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 + (foo.net [127.0.0.1]); Mon, 05 Nov 2012 11:02:21 -0800 (PST) +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Mon, 05 Nov 2012 19:02:27 -0000 + +Add a check to "configure" to see whether -Wl,-rpath can be used without +--enable-new-dtags. Solaris needs the former and doesn't know about the +latter. +--- + configure | 4 ++++ + 1 files changed, 4 insertions(+), 0 deletions(-) + +diff --git a/configure b/configure +index 9707f11..c9da667 100755 +--- a/configure ++++ b/configure +@@ -552,6 +552,10 @@ if ${CC} -Wl,--enable-new-dtags -Wl,-rpath,/tmp/ -o minimal minimal.c >/dev/null + then + printf "Yes.\n" + rpath_ldflags="-Wl,--enable-new-dtags -Wl,-rpath,\$(libdir)" ++elif ${CC} -Wl,-rpath,/tmp/ -o minimal minimal.c >/dev/null 2>&1 ++then ++ printf "Yes.\n" ++ rpath_ldflags="-Wl,-rpath,\$(libdir)" + else + printf "No (nothing to worry about).\n" + rpath_ldflags="" +-- +1.7.3.2 +