<commit_before>PLUGIN=		auth_saslauthd.so
CNF=		auth_saslauthd.cnf
HDRS=		saslauthd_client.h
SRCS=		saslauthd_client.c auth_saslauthd.c

SASLAUTHD_PATH=	/var/state/saslauthd/mux
SASLAUTHD_SERVICE=mariadb

CNFDIR=		/etc/my.cnf.d
PLUGINDIR=	`mysql_config --plugindir`

DEFS=		-DMYSQL_DYNAMIC_PLUGIN \
		-DSASLAUTHD_PATH='"${SASLAUTHD_PATH}"' \
		-DSASLAUTHD_SERVICE='"${SASLAUTHD_SERVICE}"'

MYSQLFLAGS=	`mysql_config --cflags`

PICFLAG+=	-fPIC
CFLAGS+=	${OPTIMIZE} ${PICFLAG} ${MYSQLFLAGS} ${DEFS}
SOFLAGS+=	-shared

OBJS=		${SRCS:.c=.o}

INSTALL=	install

all: ${PLUGIN}

${PLUGIN}: ${OBJS}
	${CC} ${SOFLAGS} -o ${PLUGIN} ${OBJS}

${OBJS}: ${SRCS} ${HDRS}
<commit_msg>Link with libpthread.so and libmysqlservices.a.<commit_after>PLUGIN=		auth_saslauthd.so
CNF=		auth_saslauthd.cnf
HDRS=		saslauthd_client.h
SRCS=		saslauthd_client.c auth_saslauthd.c

SASLAUTHD_PATH=	/var/state/saslauthd/mux
SASLAUTHD_SERVICE=mariadb

PLUGINDIR!=	mysql_config --plugindir
MYLIBDIR!=	mysql_config --variable=pkglibdir
MYFLAGS!=	mysql_config --cflags

DEFS=		-DMYSQL_DYNAMIC_PLUGIN \
		-DSASLAUTHD_PATH='"${SASLAUTHD_PATH}"' \
		-DSASLAUTHD_SERVICE='"${SASLAUTHD_SERVICE}"'

PICFLAGS+=	-fPIC
CFLAGS+=	${OPTIMIZE} ${PICFLAGS} ${MYFLAGS} ${DEFS}
SOFLAGS+=	-shared
SOLIBS+=	-lpthread -L${MYLIBDIR} -lmysqlservices

OBJS=		${SRCS:.c=.o}

INSTALL=	install

all: ${PLUGIN}

${PLUGIN}: ${OBJS}
	${CC} ${SOFLAGS} -o ${PLUGIN} ${OBJS} ${SOLIBS}

${OBJS}: ${SRCS} ${HDRS}

{'fraction_non_alphanumeric': 0.17174515235457063, 'fraction_numerical': 0.0, 'mean_word_length': 5.784037558685446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '149869', 'n_tokens_mistral': 741, 'n_tokens_neox': 732, 'n_words': 108}