Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Upstream-Status: Pending |
| 2 | |
| 3 | Author: dexuan.cui@intel.com |
| 4 | Date: Fri Apr 15 16:17:39 CST 2011 |
| 5 | |
| 6 | The patch fixes a parallel-make issue: when generating $(SHAREDDIR)/%.o, we should |
| 7 | ensure the directory ${SHAREDDIR} exists. |
| 8 | |
| 9 | We need to push the patch to upstream. |
| 10 | |
| 11 | Signed-off-by: Dexuan Cui <dexuan.cui@intel.com> |
| 12 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 13 | --- |
| 14 | Makefile.in | 4 ++-- |
| 15 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 16 | |
| 17 | diff --git a/Makefile.in b/Makefile.in |
| 18 | --- a/Makefile.in |
| 19 | +++ b/Makefile.in |
| 20 | @@ -128,12 +128,12 @@ $(SHAREDDIR): |
| 21 | |
| 22 | sharedlib: $(LIBNEWTSH) |
| 23 | |
| 24 | -$(LIBNEWTSH): $(SHAREDDIR) $(SHAREDOBJS) |
| 25 | +$(LIBNEWTSH): $(SHAREDOBJS) |
| 26 | $(CC) -shared -o $(LIBNEWTSH) $(SHLIBFLAGS) $(SHAREDOBJS) $(LDFLAGS) $(LIBS) |
| 27 | ln -fs $(LIBNEWTSONAME) libnewt.$(SOEXT) |
| 28 | ln -fs $(LIBNEWTSH) $(LIBNEWTSONAME) |
| 29 | |
| 30 | -$(SHAREDDIR)/%.o : %.c |
| 31 | +$(SHAREDDIR)/%.o : %.c $(SHAREDDIR) |
| 32 | $(CC) $(SHCFLAGS) -c $(CFLAGS) $(CPPFLAGS) -o $@ $< |
| 33 | |
| 34 | install: $(LIBNEWT) install-sh whiptail |
| 35 | -- |
| 36 | 1.8.1.2 |
| 37 | |