Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 54 / 8e04950d1ca6f8717b071899a04f59fb3b551d
1 Return-Path: <bremner@tesseract.cs.unb.ca>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5  by arlo.cworth.org (Postfix) with ESMTP id 8AD986DE19A8\r
6  for <notmuch@notmuchmail.org>; Mon,  1 Jun 2015 00:10:51 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.264\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.264 tagged_above=-999 required=5 tests=[AWL=0.254, \r
12  T_HEADER_FROM_DIFFERENT_DOMAINS=0.01] autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id 1laJSDmfLMC4 for <notmuch@notmuchmail.org>;\r
16  Mon,  1 Jun 2015 00:10:50 -0700 (PDT)\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
18  [87.98.215.224])\r
19  by arlo.cworth.org (Postfix) with ESMTPS id D13786DE1774\r
20  for <notmuch@notmuchmail.org>; Mon,  1 Jun 2015 00:10:49 -0700 (PDT)\r
21 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
22  4.80) (envelope-from <bremner@tesseract.cs.unb.ca>)\r
23  id 1YzJrL-0007OH-MK; Mon, 01 Jun 2015 07:10:07 +0000\r
24 Received: (nullmailer pid 2451 invoked by uid 1000); Mon, 01 Jun 2015\r
25  07:09:06 -0000\r
26 From: David Bremner <david@tethera.net>\r
27 To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
28 Subject: [patch v3 2/4] build/ruby: make use of -Wl,--no-undefined\r
29  configurable\r
30 Date: Mon,  1 Jun 2015 09:09:00 +0200\r
31 Message-Id: <1433142542-2307-3-git-send-email-david@tethera.net>\r
32 X-Mailer: git-send-email 2.1.4\r
33 In-Reply-To: <1433142542-2307-1-git-send-email-david@tethera.net>\r
34 References: <1425679073-30439-5-git-send-email-david@tethera.net>\r
35  <1433142542-2307-1-git-send-email-david@tethera.net>\r
36 X-BeenThere: notmuch@notmuchmail.org\r
37 X-Mailman-Version: 2.1.18\r
38 Precedence: list\r
39 List-Id: "Use and development of the notmuch mail system."\r
40  <notmuch.notmuchmail.org>\r
41 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
42  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
43 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
44 List-Post: <mailto:notmuch@notmuchmail.org>\r
45 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
46 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
47  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
48 X-List-Received-Date: Mon, 01 Jun 2015 07:10:51 -0000\r
49 \r
50 In particular this is supposed to help build on systems (presumably\r
51 using a non-gnu ld) where this flag is not available.\r
52 ---\r
53  bindings/Makefile.local  |  4 +++-\r
54  bindings/ruby/extconf.rb |  5 +++--\r
55  configure                | 13 +++++++++++++\r
56  3 files changed, 19 insertions(+), 3 deletions(-)\r
57 \r
58 diff --git a/bindings/Makefile.local b/bindings/Makefile.local\r
59 index e0b0bf0..2ad0b86 100644\r
60 --- a/bindings/Makefile.local\r
61 +++ b/bindings/Makefile.local\r
62 @@ -5,7 +5,9 @@ dir := bindings\r
63  # force the shared library to be built\r
64  ruby-bindings: lib/libnotmuch.so\r
65  ifeq ($(HAVE_RUBY_DEV),1)\r
66 -       cd $(dir)/ruby && ruby extconf.rb --vendor\r
67 +       cd $(dir)/ruby && \\r
68 +               EXTRA_LDFLAGS="$(NO_UNDEFINED_LDFLAGS)" \\r
69 +               ruby extconf.rb --vendor\r
70         $(MAKE) -C $(dir)/ruby\r
71  else\r
72         @echo Missing dependency, skipping ruby bindings\r
73 diff --git a/bindings/ruby/extconf.rb b/bindings/ruby/extconf.rb\r
74 index 6160db2..6d5607e 100644\r
75 --- a/bindings/ruby/extconf.rb\r
76 +++ b/bindings/ruby/extconf.rb\r
77 @@ -10,8 +10,9 @@ dir = File.join('..', '..', 'lib')\r
78  # includes\r
79  $INCFLAGS = "-I#{dir} #{$INCFLAGS}"\r
80  \r
81 -# make sure there are no undefined symbols\r
82 -$LDFLAGS += ' -Wl,--no-undefined'\r
83 +if ENV['EXTRA_LDFLAGS']\r
84 +  $LDFLAGS += " " + ENV['EXTRA_LDFLAGS']\r
85 +end\r
86  \r
87  def have_local_library(lib, path, func, headers = nil)\r
88    checking_for checking_message(func, lib) do\r
89 diff --git a/configure b/configure\r
90 index 5a862b1..e3b4902 100755\r
91 --- a/configure\r
92 +++ b/configure\r
93 @@ -750,6 +750,16 @@ else\r
94      as_needed_ldflags=""\r
95  fi\r
96  \r
97 +printf "Checking for -Wl,--no-undefined... "\r
98 +if ${CC} -Wl,--no-undefined -o minimal minimal.c >/dev/null 2>&1\r
99 +then\r
100 +    printf "Yes.\n"\r
101 +    no_undefined_ldflags="-Wl,--no-undefined"\r
102 +else\r
103 +    printf "No (nothing to worry about).\n"\r
104 +    no_undefined_ldflags=""\r
105 +fi\r
106 +\r
107  WARN_CXXFLAGS=""\r
108  printf "Checking for available C++ compiler warning flags... "\r
109  for flag in -Wall -Wextra -Wwrite-strings; do\r
110 @@ -954,6 +964,9 @@ RPATH_LDFLAGS = ${rpath_ldflags}\r
111  # Flags needed to have linker link only to necessary libraries\r
112  AS_NEEDED_LDFLAGS = ${as_needed_ldflags}\r
113  \r
114 +# Flags to have the linker flag undefined symbols in object files\r
115 +NO_UNDEFINED_LDFLAGS = ${no_undefined_ldflags}\r
116 +\r
117  # Whether valgrind header files are available\r
118  HAVE_VALGRIND = ${have_valgrind}\r
119  \r
120 -- \r
121 2.1.4\r
122 \r