summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/newt/files/fix_SHAREDDIR.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/newt/files/fix_SHAREDDIR.patch')
-rw-r--r--meta/recipes-extended/newt/files/fix_SHAREDDIR.patch37
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 @@
1Upstream-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