From a84a6b0f65935b8d4fbbededaea743db48e1dea6 Mon Sep 17 00:00:00 2001 From: bdrewery Date: Fri, 14 Jun 2013 21:13:41 +0000 Subject: - Fix qmail-mysql build with clang and recent mysql-client Reported by: miwi via pointyhat --- mail/qmail/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mail/qmail') diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile index a9d8bee97a56..6355b5897403 100644 --- a/mail/qmail/Makefile +++ b/mail/qmail/Makefile @@ -679,7 +679,9 @@ post-patch: . endif .endif .if defined(SLAVE_MYSQL) - @${REINPLACE_CMD} 's|/opt/mysql|${LOCALBASE}|' \ + @${REINPLACE_CMD} \ + -e 's|/opt/mysql|${LOCALBASE}|' \ + -e "s,MYSQL_LIBS=.*,MYSQL_LIBS=\`${LOCALBASE}/bin/mysql_config --libs\`," \ ${WRKSRC}/Makefile .elif defined(SLAVE_SPAMCONTROL) @${ECHO_CMD} ${WRKDIR} > ${WRKSRC}/conf-qmail -- cgit