From d7f6477c0180324270b6b9cf289e8da3583b45c6 Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Mon, 12 Jun 2017 16:18:01 +0200 Subject: [PATCH] Use additional CFLAGS from configure --- test/data/emacs-module/Makefile.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/data/emacs-module/Makefile.in b/test/data/emacs-module/Makefile.in index 427d1aaa07c..c284256181e 100644 --- a/test/data/emacs-module/Makefile.in +++ b/test/data/emacs-module/Makefile.in @@ -25,6 +25,9 @@ top_srcdir = @top_srcdir@ VPATH = $(srcdir) CC = @CC@ CFLAGS = @CFLAGS@ +PROFILING_CFLAGS = @PROFILING_CFLAGS@ +WARN_CFLAGS = @WARN_CFLAGS@ +WERROR_CFLAGS = @WERROR_CFLAGS@ CPPFLAGS = @CPPFLAGS@ SO = @MODULES_SUFFIX@ @@ -35,12 +38,15 @@ else FPIC_CFLAGS = -fPIC endif +ALL_CFLAGS = -I$(top_srcdir)/src $(FPIC_CFLAGS) $(PROFILING_CFLAGS) \ + $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS) + all: mod-test$(SO) %$(SO): %.o $(CC) -shared $(LDFLAGS) -o $@ $< %.o: %.c - $(CC) $(CPPFLAGS) $(CFLAGS) $(FPIC_CFLAGS) -I$(top_srcdir)/src -c -o $@ $< + $(CC) $(CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $< %.o: $(srcdir)/emacs-module.[ch] -- 2.39.2