Use mysql_config to query MySQL LIBS and CFLAGS
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan
|
||||
|
||||
AM_CFLAGS = -rdynamic
|
||||
AM_CFLAGS = -rdynamic $(MYSQLCFLAG)
|
||||
|
||||
plugin_LTLIBRARIES = libstrongswan-mysql.la
|
||||
|
||||
libstrongswan_mysql_la_SOURCES = mysql_plugin.h mysql_plugin.c \
|
||||
mysql_database.h mysql_database.c
|
||||
libstrongswan_mysql_la_LDFLAGS = -module -avoid-version
|
||||
libstrongswan_mysql_la_LIBADD = -lmysqlclient_r
|
||||
libstrongswan_mysql_la_LIBADD = $(MYSQLLIB)
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#define _GNU_SOURCE
|
||||
#include <string.h>
|
||||
#include <pthread.h>
|
||||
#include <mysql/mysql.h>
|
||||
#include <mysql.h>
|
||||
|
||||
#include "mysql_database.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user