git: fix build with with no threads
[buildroot-gz.git] / package / motion / 0001-configure.ac-use-given-CFLAGS-LIBS-for-mysqlclient-l.patch
blob4211fe67bd3c67553662db9d9de1cd2f5f497802
1 From 5a1081d36bf2861ffc882354c583a0eb6b0ee3d5 Mon Sep 17 00:00:00 2001
2 From: Peter Seiderer <ps.report@gmx.net>
3 Date: Tue, 25 Oct 2016 21:27:41 +0200
4 Subject: [PATCH] configure.ac: use given CFLAGS/LIBS for mysqlclient library
5 check
7 Needed for static linking of mysql with enabled libz.
9 Signed-off-by: Peter Seiderer <ps.report@gmx.net>
10 ---
11 configure.ac | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
14 diff --git a/configure.ac b/configure.ac
15 index 5782fd6..aa5d9dd 100644
16 --- a/configure.ac
17 +++ b/configure.ac
18 @@ -618,8 +618,8 @@ else
19 #LDFLAGS="-L$MYSQL_LIBDIR"
20 saved_CFLAGS=$CFLAGS
21 saved_LIBS=$LIBS
22 - CFLAGS="-I$MYSQL_INCDIR"
23 - LIBS="-L$MYSQL_LIBDIR"
24 + CFLAGS="-I$MYSQL_INCDIR $CFLAGS"
25 + LIBS="-L$MYSQL_LIBDIR $LIBS"
26 AC_CHECK_LIB(mysqlclient,mysql_init,[
27 TEMP_LIBS="$TEMP_LIBS -L$MYSQL_LIBDIR -lmysqlclient -lz"
28 TEMP_CFLAGS="$TEMP_CFLAGS -I$MYSQL_INCDIR"
29 --
30 2.8.1