blob: 0c686d6e276c74423ad700e36a637ceb75d08543 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001I was seeing various issues with parallel make, mainly due to to what was likely
2partially installed headers. If you change into the source directory and
3"NOISY=1 make ../obj/apt-pkg/sourcelist.opic" in apt-pkg, you'll see it
4doesn't have any dependencies on the headers being installed. This patch
5fixes that so things build correctly.
6
7RP 2012/3/19
8
9Upstream-Status: Pending
10
Brad Bishop316dfdd2018-06-25 12:45:53 -040011Index: apt-1.2.24/buildlib/library.mak
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012===================================================================
Brad Bishop316dfdd2018-06-25 12:45:53 -040013--- apt-1.2.24.orig/buildlib/library.mak
14+++ apt-1.2.24/buildlib/library.mak
15@@ -65,7 +65,7 @@ $(LIB)/lib$(LIBRARY).so.$(MAJOR).$(MINOR
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016
17 # Compilation rules
18 vpath %.cc $(SUBDIRS)
19-$(OBJ)/%.opic: %.cc $(LIBRARYDEPENDS)
20+$(OBJ)/%.opic: %.cc $(LIBRARYDEPENDS) $($(LOCAL)-HEADERS)
21 echo Compiling $< to $@
Brad Bishop316dfdd2018-06-25 12:45:53 -040022 $(CXX) -c $(INLINEDEPFLAG) $(CPPFLAGS) $(CXXSTD) $(CXXFLAGS) $(PICFLAGS) -o $@ '$(abspath $<)'
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023 $(DoDep)