From bee06822668bfe6847536e5c3244d2cbaad50238 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 8 Nov 2016 16:35:27 +0100 Subject: [PATCH] Makefile: Add MySQL flags for mxqd_control MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Building MXQ under Debian Sid/unstable with the package `libmysqlclient-dev` installed, the build fails with the error below. ``` $ make V=1 […] cc -g -Wall -DMXQ_VERSION=\"0.22.3\" -DMXQ_VERSIONFULL=\""MXQ v0.22.3 ("beta") [0.22.3-0-gf868e20]"\" -DMXQ_VERSIONDATE=\"2015\" -DMXQ_VERSIONEXTRA=\"\" -DPREFIX=\"/usr\" -DEPREFIX=\"/usr\" -DSBINDIR=\"/usr/sbin\" -DBINDIR=\"/usr/bin\" -DLIBDIR=\"/usr/lib\" -DLIBEXECDIR=\"/usr/libexec\" -DDATADIR=\"/usr/share\" -DMANDIR=\"/usr/share/man\" -DSYSCONFDIR=\"/etc\" -DLOCALSTATEDIR=\"/var\" -o mxqd_control.o -c mxqd_control.c In file included from mxqd_control.c:7:0: mxq_job.h:5:19: fatal error: mysql.h: No such file or directory #include ^ compilation terminated. ``` Add the needed C compiler flags to `mxqd_control.o` to fix this. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 7e722fb7..d6f1e8ad 100644 --- a/Makefile +++ b/Makefile @@ -454,6 +454,7 @@ clean: CLEAN += mxq_daemon.o ### mxqd_control.o ----------------------------------------------------- mxqd_control.o: $(mxqd_control.h) +mxqd_control.o: CFLAGS += $(CFLAGS_MYSQL) clean: CLEAN += mxqd_control.o