Author: bdrewery
Date: Fri Mar 11 23:45:05 2016
New Revision: 296694
URL: https://svnweb.freebsd.org/changeset/base/296694

Log:
  DIRDEPS_BUILD: export DESTDIR for STAGING.
  
  An example of where this is needed is in share/examples which for
  'etc-examples' runs 'make -C SRCTOP/etc etc-examples' which installs
  to the default DESTDIR otherwise.
  
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/share/mk/bsd.sys.mk

Modified: head/share/mk/bsd.sys.mk
==============================================================================
--- head/share/mk/bsd.sys.mk    Fri Mar 11 23:45:02 2016        (r296693)
+++ head/share/mk/bsd.sys.mk    Fri Mar 11 23:45:05 2016        (r296694)
@@ -197,6 +197,7 @@ staging stage_libs stage_files stage_as 
 .else
 # allow targets like beforeinstall to be leveraged
 DESTDIR= ${STAGE_OBJTOP}
+.export DESTDIR
 
 .if target(beforeinstall)
 .if !empty(_LIBS) || (${MK_STAGING_PROG} != "no" && !defined(INTERNALPROG))
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to