summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm/rpm/rpm-lua.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/rpm/rpm/rpm-lua.patch')
-rw-r--r--meta/recipes-devtools/rpm/rpm/rpm-lua.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rpm/rpm/rpm-lua.patch b/meta/recipes-devtools/rpm/rpm/rpm-lua.patch
new file mode 100644
index 0000000000..a9930d6705
--- /dev/null
+++ b/meta/recipes-devtools/rpm/rpm/rpm-lua.patch
@@ -0,0 +1,33 @@
1Add support for cross compiling lua
2
3Upstream-Status: Pending
4
5Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
6
7Index: rpm-5.4.14/configure.ac
8===================================================================
9--- rpm-5.4.14.orig/configure.ac
10+++ rpm-5.4.14/configure.ac
11@@ -121,6 +121,9 @@ AC_PROG_YACC
12
13 AC_PATH_PROG(AS, as, as)
14
15+CC_FOR_BUILD=${CC_FOR_BUILD-\$(CC)}
16+AC_SUBST(CC_FOR_BUILD)
17+
18 dnl # GCC specifics
19 AC_PROG_GCC_TRADITIONAL
20 AC_ARG_ENABLE(build-pic,
21Index: rpm-5.4.14/lua/Makefile.am
22===================================================================
23--- rpm-5.4.14.orig/lua/Makefile.am
24+++ rpm-5.4.14/lua/Makefile.am
25@@ -41,7 +41,7 @@ rpmluac_LDADD = liblua.la
26
27 # --- bin2c doesn't need anything but a compiler
28 bin2c$(EXEEXT): bin2c.c
29- $(CC) -o $@ $<
30+ $(CC_FOR_BUILD) -o $@ $<
31
32 liblua_la_SOURCES =
33 liblua_la_CFLAGS = @WITH_LUA_SUBDIR_DEF@