Package: emboss / 6.6.0+dfsg-1

fix-mysql-macro.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: Enable linking mysqlclient with linker set for --as-needed
Author: Felix Geyer <fgeyer@debian.org>
Date: Sun, 29 Jul 2012 22:07:33 +0200
Bugs-Debian: http://bugs.debian.org/650237
LastChanged: Mon, 09 Sep 2013 14:48:22 +0200 (Andreas Tille, adapt to 6.6.0)

--- a/m4/mysql.m4
+++ b/m4/mysql.m4
@@ -101,10 +101,10 @@ AC_DEFUN([AX_LIB_MYSQL],
       dnl not be installed
 
       EMBCPPFLAGS="${CPPFLAGS}"
-      EMBLDFLAGS="${LDFLAGS}"
+      EMBLIBS="${LIBS}"
 
       CPPFLAGS="${MYSQL_CPPFLAGS} ${EMBCPPFLAGS}"
-      LDFLAGS="${MYSQL_LDFLAGS} ${EMBLDFLAGS}"
+      LIBS="${MYSQL_LDFLAGS} ${EMBLIBS}"
 
       AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
                                         #include "mysql.h"]],
@@ -113,7 +113,7 @@ AC_DEFUN([AX_LIB_MYSQL],
         [havemysql="no"])
 
       CPPFLAGS="${EMBCPPFLAGS}"
-      LDFLAGS="${EMBLDFLAGS}"
+      LIBS="${EMBLIBS}"
 
       AS_IF([test "x${havemysql}" = "xyes"],
       [