44572f1bd104893faf7fb3f46d2d1d243d587e1a
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libiscsi / 0002-Avoid-libtool-AM_PROG_AR-warning-during-autoreconf.patch
1 From 2f476df340f50b9c10a7f45f4ec809e9ef82aba6 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Tue, 2 Sep 2014 22:40:04 +0200
4 Subject: [PATCH 2/4] Avoid libtool/AM_PROG_AR warning during autoreconf
5
6 This patch allows to avoid the following warning during autoreconf:
7
8 /home/thomas/projets/buildroot/output/host/usr/share/automake-1.14/am/ltlibrary.am: warning: 'lib/libiscsi_convenience.la': linking libtool libraries using a non-POSIX
9 /home/thomas/projets/buildroot/output/host/usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
10
11 Note that LT_INIT *must* be after AM_PROG_AR, otherwise:
12
13 configure.ac:14: warning: LT_INIT was called before AM_PROG_AR
14
15 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
16 ---
17  configure.ac | 4 +++-
18  1 file changed, 3 insertions(+), 1 deletion(-)
19
20 diff --git a/configure.ac b/configure.ac
21 index 6d29af0..eb9d995 100644
22 --- a/configure.ac
23 +++ b/configure.ac
24 @@ -5,12 +5,14 @@ AC_CONFIG_MACRO_DIR([m4])
25  
26  AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
27  AM_SILENT_RULES
28 -LT_INIT
29  
30  AC_CANONICAL_HOST
31  AM_CONDITIONAL(LD_ISCSI,
32                 [expr "$host_os" : linux > /dev/null 2>&1])
33  AM_PROG_CC_C_O
34 +AM_PROG_AR
35 +
36 +LT_INIT
37  
38  enable_write_strings="yes"
39  
40 -- 
41 2.0.0
42