From: Blake Jones Date: Sun, 4 Nov 2012 03:15:56 +0000 (+1700) Subject: [PATCH 04/10] configure: check for -Wl,-rpath (Solaris support) X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=11a10befa03bd7be98dc1dec0377ddbb7f3e8bee;p=notmuch-archives.git [PATCH 04/10] configure: check for -Wl,-rpath (Solaris support) --- diff --git a/a2/1ab2b5f1ef1724c319fa7e96a9af197b15825b b/a2/1ab2b5f1ef1724c319fa7e96a9af197b15825b new file mode 100644 index 000000000..bbfeb049e --- /dev/null +++ b/a2/1ab2b5f1ef1724c319fa7e96a9af197b15825b @@ -0,0 +1,78 @@ +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 F2875431FAE + for ; Sat, 3 Nov 2012 20:24:17 -0700 (PDT) +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 h75xlPrcR3a2 for ; + Sat, 3 Nov 2012 20:24:17 -0700 (PDT) +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 7BF85431FAF + for ; Sat, 3 Nov 2012 20:24:17 -0700 (PDT) +Received: from foo.net (localhost [127.0.0.1]) + by foo.net (8.14.5+Sun/8.14.5) with ESMTP id qA43GFYG025673; + Sat, 3 Nov 2012 20:16:15 -0700 (PDT) +Received: (from blakej@localhost) + by foo.net (8.14.5+Sun/8.14.5/Submit) id qA43GFHl025672; + Sat, 3 Nov 2012 20:16:15 -0700 (PDT) +From: Blake Jones +To: notmuch@notmuchmail.org +Subject: [PATCH 04/10] configure: check for -Wl,-rpath (Solaris support) +Date: Sat, 3 Nov 2012 20:15:56 -0700 +Message-Id: <1351998962-25135-5-git-send-email-blakej@foo.net> +X-Mailer: git-send-email 1.7.3.2 +In-Reply-To: <1351998962-25135-1-git-send-email-blakej@foo.net> +References: <1351998962-25135-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]); Sat, 03 Nov 2012 20:16:15 -0700 (PDT) +X-Mailman-Approved-At: Sun, 04 Nov 2012 01:30:19 -0800 +Cc: Blake Jones +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: Sun, 04 Nov 2012 03:24:18 -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 file changed, 4 insertions(+) + +diff --git a/configure b/configure +index 28d4110..5c5139f 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.9.2 +