Author: sjg
Date: Sun Aug  4 07:10:16 2013
New Revision: 253925
URL: http://svnweb.freebsd.org/changeset/base/253925

Log:
  Move the call to Job_SetPrefix() to Job_Init() so that
  makefiles have had a chance to set .MAKE.JOB.PREFIX

Modified:
  head/contrib/bmake/job.c
  head/contrib/bmake/main.c

Modified: head/contrib/bmake/job.c
==============================================================================
--- head/contrib/bmake/job.c    Sun Aug  4 06:36:17 2013        (r253924)
+++ head/contrib/bmake/job.c    Sun Aug  4 07:10:16 2013        (r253925)
@@ -2214,6 +2214,7 @@ Job_SetPrefix(void)
 void
 Job_Init(void)
 {
+    Job_SetPrefix();
     /* Allocate space for all the job info */
     job_table = bmake_malloc(maxJobs * sizeof *job_table);
     memset(job_table, 0, maxJobs * sizeof *job_table);

Modified: head/contrib/bmake/main.c
==============================================================================
--- head/contrib/bmake/main.c   Sun Aug  4 06:36:17 2013        (r253924)
+++ head/contrib/bmake/main.c   Sun Aug  4 07:10:16 2013        (r253925)
@@ -1026,7 +1026,6 @@ main(int argc, char **argv)
                snprintf(pn, sizeof(pn), "%s[%d]", progname, makelevel);
                progname = bmake_strdup(pn);
        }
-       Job_SetPrefix();
 
 #ifdef USE_META
        meta_init();
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to