35d3860215ac330b1a363682f2d76f23e100a495
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / infozip / 0004-configure-use-LDFLAGS-from-command-line.patch
1 From 5c58b8737dc9ccf9407f6725f6f07b764d6abb22 Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@openwide.fr>
3 Date: Thu, 22 Jan 2015 23:47:55 +0100
4 Subject: [PATCH 4/6] configure: use LDFLAGS from command line
5
6 The bzip2 support may not enabled due to a build error
7 during the checking for bzip2 library.
8 The library path (-L) to bzip2 library is missing.
9
10 Signed-off-by: Romain Naour <romain.naour@openwide.fr>
11 ---
12  unix/configure | 4 ++--
13  1 file changed, 2 insertions(+), 2 deletions(-)
14
15 diff --git a/unix/configure b/unix/configure
16 index 489009f..de9fd68 100644
17 --- a/unix/configure
18 +++ b/unix/configure
19 @@ -106,11 +106,11 @@ int main()
20    return 0;
21  }
22  _EOF_
23 -      $CC $CFLAGS -o conftest conftest.c -lbz2 > /dev/null 2>/dev/null
24 +      $CC $CFLAGS $LDFLAGS -o conftest conftest.c -lbz2 > /dev/null 2>/dev/null
25        if test $? -eq 0; then
26          echo "-- OS supports bzip2 - linking in bzip2"
27          CFLAGS="${CFLAGS} -DBZIP2_SUPPORT"
28 -        LFLAGS2="${LFLAGS2} -lbz2"
29 +        LFLAGS2="${LFLAGS2} ${LDFLAGS} -lbz2"
30        else
31          echo "-- Either bzlib.h or libbz2.a not found - no bzip2"
32        fi
33 -- 
34 1.9.3
35