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