diff options
Diffstat (limited to 'meta/packages/js/files/buildcc.patch')
-rw-r--r-- | meta/packages/js/files/buildcc.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/packages/js/files/buildcc.patch b/meta/packages/js/files/buildcc.patch new file mode 100644 index 0000000000..26eef218d6 --- /dev/null +++ b/meta/packages/js/files/buildcc.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | jskwgen should be built by BUILD_CC in cross environment | ||
2 | |||
3 | 7/23/2010 - created by Qing He <qing.he@intel.com> | ||
4 | |||
5 | diff -uNr js.orig//src/Makefile.ref js/src/Makefile.ref | ||
6 | --- js.orig//src/Makefile.ref 2009-02-25 21:24:29.000000000 +0800 | ||
7 | +++ js/src/Makefile.ref 2010-07-23 13:26:51.000000000 +0800 | ||
8 | @@ -303,10 +303,10 @@ | ||
9 | |||
10 | $(OBJDIR)/jskwgen.o: jskwgen.c jskeyword.tbl | ||
11 | @$(MAKE_OBJDIR) | ||
12 | - $(CC) -o $@ -c $(CFLAGS) $< | ||
13 | + $(BUILD_CC) -o $@ -c $(BUILD_CFLAGS) $< | ||
14 | |||
15 | $(OBJDIR)/jskwgen$(HOST_BIN_SUFFIX): $(OBJDIR)/jskwgen.$(OBJ_SUFFIX) | ||
16 | - $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $^ | ||
17 | + $(BUILD_CC) -o $@ $(BUILD_CFLAGS) $(BUILD_LDFLAGS) $^ | ||
18 | |||
19 | endif | ||
20 | |||