diff --git a/egg/Makefile.am b/egg/Makefile.am
index bfc6c33..1dca3a3 100644
--- a/egg/Makefile.am
+++ b/egg/Makefile.am
@@ -23,7 +23,8 @@ INCLUDES = \
 	-DWITH_VALGRIND
 
 libegg_la_CFLAGS = \
-	$(GLIB_CFLAGS)
+	$(GLIB_CFLAGS) \
+	$(LIBGCRYPT_CFLAGS)
 
 libegg_la_SOURCES = \
 	egg-armor.c egg-armor.h \
diff --git a/egg/tests/Makefile.am b/egg/tests/Makefile.am
index 0f47a06..2e8335b 100644
--- a/egg/tests/Makefile.am
+++ b/egg/tests/Makefile.am
@@ -12,7 +12,8 @@ INCLUDES = \
 	-I$(top_builddir) \
 	-I$(top_srcdir) \
 	-DSRCDIR="\"@abs_srcdir@\"" \
-	$(GLIB_CFLAGS)
+	$(GLIB_CFLAGS) \
+	$(LIBGCRYPT_CFLAGS)
 
 LDADD =  \
 	$(top_builddir)/egg/libegg.la \
