diff options
Diffstat (limited to 'meta/recipes-extended/newt/files/fix_SHAREDDIR.patch')
-rw-r--r-- | meta/recipes-extended/newt/files/fix_SHAREDDIR.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-extended/newt/files/fix_SHAREDDIR.patch b/meta/recipes-extended/newt/files/fix_SHAREDDIR.patch new file mode 100644 index 0000000000..b0a1e8c105 --- /dev/null +++ b/meta/recipes-extended/newt/files/fix_SHAREDDIR.patch | |||
@@ -0,0 +1,37 @@ | |||
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 | |||