diff mbox

libgo patch committed: Make sure directory exists

Message ID mcrobqi1iuk.fsf@dhcp-172-18-216-180.mtv.corp.google.com
State New
Headers show

Commit Message

Ian Lance Taylor April 23, 2012, 5:03 p.m. UTC
This patch to the libgo Makefile makes sure that the directory where we
place a .o file exists before we try to use it.  Bootstrapped on
x86_64-unknown-linux-gnu.  Committed to mainline and 4.7 branch.

Ian
diff mbox

Patch

diff -r e746e3770f15 libgo/Makefile.am
--- a/libgo/Makefile.am	Sun Apr 22 13:07:04 2012 -0700
+++ b/libgo/Makefile.am	Mon Apr 23 09:58:40 2012 -0700
@@ -2854,6 +2854,7 @@ 
 log/syslog.lo: $(go_log_syslog_files)
 	$(BUILDPACKAGE)
 log/syslog/syslog_c.lo: $(go_syslog_c_files) log/syslog.lo
+	@$(MKDIR_P) log/syslog
 	$(LTCOMPILE) -c -o $@ $(srcdir)/go/log/syslog/syslog_c.c
 log/syslog/check: $(CHECK_DEPS)
 	@$(MKDIR_P) log/syslog