1 diff --git a/src/modules/Makefile.am b/src/modules/Makefile.am
2 index a26b75f..b5685b1 100644
3 --- a/src/modules/Makefile.am
4 +++ b/src/modules/Makefile.am
5 @@ -87,7 +87,7 @@ sd_ibmtts_LDFLAGS = -Wl,-rpath=/opt/IBM/ibmtts/lib
6 EXTRA_sd_ibmtts_DEPENDENCIES = libibmeci.so
8 libibmeci.so: $(srcdir)/ibmtts_shim.c
9 - $(CC) -fPIC -shared $< -o $@
10 + $(CC) $(CFLAGS) -fPIC -shared $< -o $@
12 CLEANFILES += $(EXTRA_sd_ibmtts_DEPENDENCIES)
14 @@ -143,7 +143,7 @@ sd_baratinoo_LDADD += -L.
15 EXTRA_sd_baratinoo_DEPENDENCIES = libbaratinoo.so
17 libbaratinoo.so: $(srcdir)/baratinoo_shim.c
18 - $(CC) -fPIC -shared $< -o $@
19 + $(CC) $(CFLAGS) -fPIC -shared $< -o $@
21 CLEANFILES += $(EXTRA_sd_baratinoo_DEPENDENCIES)
23 @@ -168,7 +168,7 @@ noinst_HEADERS = kali_shim/kali/Kali/kali.h module_utils_speak_queue.h
24 EXTRA_sd_kali_DEPENDENCIES = libKali.so libKGlobal.so libKTrans.so libKParle.so libKAnalyse.so
26 lib%.so: $(srcdir)/kali_%_shim.cpp
27 - $(CXX) -fPIC -shared $< -o $@ -I$(srcdir)/kali_shim
28 + $(CXX) $(CXXFLAGS) -fPIC -shared $< -o $@ -I$(srcdir)/kali_shim
30 CLEANFILES += $(EXTRA_sd_kali_DEPENDENCIES)
32 @@ -191,7 +191,7 @@ sd_voxin_LDADD += -L.
33 EXTRA_sd_voxin_DEPENDENCIES = libvoxin.so
35 libvoxin.so: $(srcdir)/voxin_shim.c
36 - $(CC) -fPIC -shared $< -o $@
37 + $(CC) $(CFLAGS) -fPIC -shared $< -o $@
39 CLEANFILES += $(EXTRA_sd_voxin_DEPENDENCIES)