usr/src/pkg/Makefile
changeset 13255 4afa820d78b9
parent 13236 21499d6cbb4a
child 13304 b54231762cfa
--- a/usr/src/pkg/Makefile	Wed Dec 08 20:51:19 2010 -0500
+++ b/usr/src/pkg/Makefile	Thu Dec 09 22:32:39 2010 +0100
@@ -227,6 +227,12 @@
 PROC_SYNTH_PKGS= $(SYNTH_PKGS:%=$(PDIR)/%.mog)
 
 #
+# Root of pkg image to use for dependency resolution
+# Normally / on the machine used to build the binaries
+#
+PKGDEP_RESOLVE_IMAGE = /
+
+#
 # For each package, we determine the target repository based on
 # manifest-embedded metadata.  Because we make that determination on
 # the fly, the publication target cannot be expressed as a
@@ -364,7 +370,8 @@
 		done; \
 	else \
 		print "Resolving dependencies"; \
-		pkgdepend resolve -m $(DEP_SYNTH_PKGS) $(DEP_PKGS); \
+		pkgdepend -R $(PKGDEP_RESOLVE_IMAGE) resolve \
+		    -m $(DEP_SYNTH_PKGS) $(DEP_PKGS); \
 		for p in $(DEP_SYNTH_PKGS:%.dep=%) $(DEP_PKGS:%.dep=%); do \
 			if [ "$$(print $$p.metadata.*)" = \
 			     "$$(print $$p.metadata.noincorp.*)" ]; \