diff options
author | Dexuan Cui <dexuan.cui@intel.com> | 2011-04-15 16:40:47 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-04-18 05:49:39 +0100 |
commit | d02a174cb637ede72cdd6cef28ebde4d12bb97e9 (patch) | |
tree | 278dce0b9ace52f161a5fb568404ea18c1fc897a /meta/recipes-extended/newt/files/fix_SHAREDDIR.patch | |
parent | 86549fac82192c549966d3cb4ab7dcc8cb3596e2 (diff) | |
download | poky-d02a174cb637ede72cdd6cef28ebde4d12bb97e9.tar.gz |
libnewt: fix parallel-make issue
Add patch to remove hardcoded /usr/include/slang
Fixes [YOCTO #947]
(From OE-Core rev: df818bd36864ba515aeeec0c5314d174313c03a3)
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/newt/files/fix_SHAREDDIR.patch')
-rw-r--r-- | meta/recipes-extended/newt/files/fix_SHAREDDIR.patch | 29 |
1 files changed, 29 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..7795260388 --- /dev/null +++ b/meta/recipes-extended/newt/files/fix_SHAREDDIR.patch | |||
@@ -0,0 +1,29 @@ | |||
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 | |||
13 | --- a/Makefile.in | ||
14 | +++ b/Makefile.in | ||
15 | @@ -114,12 +114,12 @@ | ||
16 | |||
17 | sharedlib: $(LIBNEWTSH) | ||
18 | |||
19 | -$(LIBNEWTSH): $(SHAREDDIR) $(SHAREDOBJS) | ||
20 | +$(LIBNEWTSH): $(SHAREDOBJS) | ||
21 | $(CC) -shared -o $(LIBNEWTSH) $(SHLIBFLAGS) $(SHAREDOBJS) $(LDFLAGS) $(LIBS) | ||
22 | ln -fs $(LIBNEWTSONAME) libnewt.so | ||
23 | ln -fs $(LIBNEWTSH) $(LIBNEWTSONAME) | ||
24 | |||
25 | -$(SHAREDDIR)/%.o : %.c | ||
26 | +$(SHAREDDIR)/%.o : %.c $(SHAREDDIR) | ||
27 | $(CC) $(SHCFLAGS) -c $(CFLAGS) $(CPPFLAGS) -o $@ $< | ||
28 | |||
29 | install: $(LIBNEWT) install-sh whiptail | ||