blob: c82f3bf017ddcf795d0e7fabaf69945cd41c339a [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From 73d2aea33e32272bac693550e8a3b0e3ad89707f Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= <jpokorny@redhat.com>
3Date: Tue, 26 Dec 2017 00:02:26 +0100
4Subject: [PATCH] build: fix configure script neglecting, re-enable out-of-tree
5 builds
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10For the former, a prototype and the final code got (hm, mysteriously)
11intertwisted. For the latter, I am clearly guilty of (rare, anyway)
12testing of the out-of-tree builds only with libqb-already-system-wide
13scenario, which is rather shortsighted.
14
15Thanks Fabio and his ci.kronosnet.org project for spotting that.
16
17X-mas-present-for: Fabio M. Di Nitto <fdinitto@redhat.com>
18Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
19---
20Upstream-Status: Backport
21
22 configure.ac | 2 +-
23 lib/Makefile.am | 4 +++-
24 2 files changed, 4 insertions(+), 2 deletions(-)
25
26diff --git a/configure.ac b/configure.ac
27index 9900310..f9761cc 100644
28--- a/configure.ac
29+++ b/configure.ac
30@@ -710,7 +710,7 @@ if test "x${GCC}" = xyes; then
31 | grep __stop___verbose | cut -d" " -f 3)
32 test "${verbose_start_addr}" = "${verbose_stop_addr}" \
33 && gcc_has_attribute_section_visible=no \
34- || { verbose_start_type=$(${READELF} -s backup \
35+ || { verbose_start_type=$(${READELF} -s "conftest${shrext_cmds}" \
36 | sed -n '/__start___verbose/{s/^\s*//p;q}' \
37 | tr -s ' ' \
38 | cut -d" " -f6)
39diff --git a/lib/Makefile.am b/lib/Makefile.am
40index 6ca6b15..b035f0b 100644
41--- a/lib/Makefile.am
42+++ b/lib/Makefile.am
43@@ -101,7 +101,9 @@ endif
44 endif
45
46 qblog_script.ld: %.ld: %.ld.in
47- $(AM_V_GEN)$(CPP) -xc -I$(top_srcdir)/include -D_GNU_SOURCE -C -P $< \
48+ $(AM_V_GEN)$(CPP) -C -D_GNU_SOURCE -P \
49+ -I$(top_srcdir)/include -I$(top_builddir)/include \
50+ -xc $< \
51 | sed -n "/$$(sed -n '/^[^#]/{s/[*\/]/\\&/g;p;q;}' $<)/,$$ p" \
52 > $@
53
54--
552.16.2
56