Procházet zdrojové kódy

dselect: Add builddir to the quoted include search path

The curkeys.h file gets generated at build time, and if we use an out
of tree build directory, it cannot be found in the current search path.
But we don't want to add the builddir to the system include search path
as it will give file collisions when builddir is the same as srcdir.
Hence we only add it for quoted includes.
Guillem Jover před 17 roky
rodič
revize
2ff362a3b6
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      dselect/Makefile.am

+ 1 - 0
dselect/Makefile.am

@@ -8,6 +8,7 @@ INCLUDES = \
 	-DADMINDIR=\"$(admindir)\" -DLIBDIR=\"$(pkglibdir)\" \
 	-DADMINDIR=\"$(admindir)\" -DLIBDIR=\"$(pkglibdir)\" \
 	-DLOCALLIBDIR=\"/usr/local/lib/dpkg\" \
 	-DLOCALLIBDIR=\"/usr/local/lib/dpkg\" \
 	-idirafter $(top_srcdir)/lib/compat \
 	-idirafter $(top_srcdir)/lib/compat \
+	-iquote $(builddir) \
 	-I$(top_builddir) \
 	-I$(top_builddir) \
 	-I$(top_srcdir)/lib
 	-I$(top_srcdir)/lib