blob: b0a1e8c105eca46f40243010ab1b556d9b217936 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001Upstream-Status: Pending
2
3Author: dexuan.cui@intel.com
4Date: Fri Apr 15 16:17:39 CST 2011
5
6The patch fixes a parallel-make issue: when generating $(SHAREDDIR)/%.o, we should
7ensure the directory ${SHAREDDIR} exists.
8
9We need to push the patch to upstream.
10
11Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
12Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
13---
14 Makefile.in | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17diff --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--
361.8.1.2
37