[PATCH 2/3] ruby: allow build with RUNPATH
authorFelipe Contreras <felipe.contreras@gmail.com>
Mon, 30 Sep 2013 16:28:42 +0000 (11:28 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:57:12 +0000 (09:57 -0800)
c4/9af424f0f882ef4823dd193e40a6c789a30bbb [new file with mode: 0644]

diff --git a/c4/9af424f0f882ef4823dd193e40a6c789a30bbb b/c4/9af424f0f882ef4823dd193e40a6c789a30bbb
new file mode 100644 (file)
index 0000000..15a768b
--- /dev/null
@@ -0,0 +1,84 @@
+Return-Path: <felipe.contreras@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id F0CE6431FD6\r
+       for <notmuch@notmuchmail.org>; Mon, 30 Sep 2013 09:34:43 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id i5f5CgFcBo8M for <notmuch@notmuchmail.org>;\r
+       Mon, 30 Sep 2013 09:34:36 -0700 (PDT)\r
+Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com\r
+       [209.85.214.180]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 9EBAA431FC4\r
+       for <notmuch@notmuchmail.org>; Mon, 30 Sep 2013 09:34:34 -0700 (PDT)\r
+Received: by mail-ob0-f180.google.com with SMTP id wm4so4968833obc.25\r
+       for <notmuch@notmuchmail.org>; Mon, 30 Sep 2013 09:34:34 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=from:to:cc:subject:date:message-id:in-reply-to:references;\r
+       bh=ydurG67l5OD0D3EVnAFU3qH2WSBLuedTikYV4gip+vQ=;\r
+       b=O+AGS287JsC96K4QGfk+vKs6qAnEjEt30eapqGvmy+J3ozx7eaw1Nif5tbeMRXKC1U\r
+       vW+4mMIbC5hIKjBRe/WEF0XKuL3sPFuicfyJ8x7SC3twTqxEyK4qJ7C5WwD/ef+Q8T3F\r
+       djZsWVagf1GHa8KiEv715WmFeTiVxkhLkttKqWuxlqbk4s4WsWb5zlUiLXE5v8Gv9bic\r
+       FeKqtRk4k61ezAn5XwRyhy2UzDMwc22S3uNWT19Ln+X3Ea+UAko4SVtjO3iq/xxnp02X\r
+       q6mJkS6wHvpjVJDrf29H00gtAoa+z9fMlUeVt7n+1Ek4SzyUfG+L+zqMdgcF1oBgpFt6\r
+       58Hw==\r
+X-Received: by 10.182.247.68 with SMTP id yc4mr919488obc.67.1380558874235;\r
+       Mon, 30 Sep 2013 09:34:34 -0700 (PDT)\r
+Received: from localhost (187-162-140-241.static.axtel.net. [187.162.140.241])\r
+       by mx.google.com with ESMTPSA id\r
+       hs4sm1656210obb.5.1969.12.31.16.00.00\r
+       (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128);\r
+       Mon, 30 Sep 2013 09:34:33 -0700 (PDT)\r
+From: Felipe Contreras <felipe.contreras@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/3] ruby: allow build with RUNPATH\r
+Date: Mon, 30 Sep 2013 11:28:42 -0500\r
+Message-Id: <1380558523-6913-3-git-send-email-felipe.contreras@gmail.com>\r
+X-Mailer: git-send-email 1.8.4-fc\r
+In-Reply-To: <1380558523-6913-1-git-send-email-felipe.contreras@gmail.com>\r
+References: <1380558523-6913-1-git-send-email-felipe.contreras@gmail.com>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 30 Sep 2013 16:34:44 -0000\r
+\r
+Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>\r
+---\r
+ bindings/ruby/extconf.rb | 3 +++\r
+ 1 file changed, 3 insertions(+)\r
+\r
+diff --git a/bindings/ruby/extconf.rb b/bindings/ruby/extconf.rb\r
+index 6160db2..778016f 100644\r
+--- a/bindings/ruby/extconf.rb\r
++++ b/bindings/ruby/extconf.rb\r
+@@ -13,6 +13,9 @@ $INCFLAGS = "-I#{dir} #{$INCFLAGS}"\r
+ # make sure there are no undefined symbols\r
+ $LDFLAGS += ' -Wl,--no-undefined'\r
\r
++# enable RUNPATH\r
++$LDFLAGS += ' -Wl,--enable-new-dtags'\r
++\r
+ def have_local_library(lib, path, func, headers = nil)\r
+   checking_for checking_message(func, lib) do\r
+     lib = File.join(path, lib)\r
+-- \r
+1.8.4-fc\r
+\r