about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--perl/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl/Makefile.am b/perl/Makefile.am
index 466a41c873ad..8176f86d5091 100644
--- a/perl/Makefile.am
+++ b/perl/Makefile.am
@@ -20,7 +20,8 @@ libNixStore_la_LIBADD = $(top_builddir)/src/libstore/libstore.la
 
 AM_CXXFLAGS = \
   -I$(top_srcdir)/src -I$(top_srcdir)/src/libutil -I$(top_srcdir)/src/libstore \
-  -I$(shell $(perl) -e 'use Config; print $$Config{archlibexp};')/CORE
+  -I$(shell $(perl) -e 'use Config; print $$Config{archlibexp};')/CORE \
+  $(shell $(perl) -e 'use Config; print $$Config{ccflags};')
 
 lib/Nix/Store.cc: lib/Nix/Store.xs
 	xsubpp $^ -output $@