diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2011-07-26 08:26:08 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-27 15:45:49 +0100 |
commit | 54da9dcc855690be79762e894eb5c347f2487d8e (patch) | |
tree | 7b17692d247a8e3c521ee40845fa45fe56d22a8d /meta/recipes-devtools/distcc/files | |
parent | 9f54793089eb355bb83b8026557f07bfe1cc721f (diff) | |
download | poky-54da9dcc855690be79762e894eb5c347f2487d8e.tar.gz |
distcc: fix makefile parameter order
When linking with gcc, the parameter is read from left to write, if *.o
calls a function contained in libxxx, the parameter order should be
"gcc ... *.o -lxxx".
This commit fixes the problem in distcc.
(From OE-Core rev: 782499eaa817f1beecc0aea5bfa075196f8e2a53)
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/distcc/files')
-rw-r--r-- | meta/recipes-devtools/distcc/files/makefile-param-order.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/recipes-devtools/distcc/files/makefile-param-order.patch b/meta/recipes-devtools/distcc/files/makefile-param-order.patch new file mode 100644 index 0000000000..fc57414f12 --- /dev/null +++ b/meta/recipes-devtools/distcc/files/makefile-param-order.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | distcc: Put the "-lLIB" parameter in the end of the gcc command. | ||
2 | |||
3 | Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | |||
7 | diff -ruN distcc-2.18.3-orig/Makefile.in distcc-2.18.3/Makefile.in | ||
8 | --- distcc-2.18.3-orig/Makefile.in 2011-07-25 16:43:21.000000000 +0800 | ||
9 | +++ distcc-2.18.3/Makefile.in 2011-07-25 16:45:39.000000000 +0800 | ||
10 | @@ -378,8 +378,8 @@ | ||
11 | |||
12 | distccmon-gnome@EXEEXT@: $(mon_obj) $(gnome_obj) | ||
13 | $(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(LIBS) \ | ||
14 | - $(GNOME_CFLAGS) $(GNOME_LIBS) \ | ||
15 | - $(mon_obj) $(gnome_obj) | ||
16 | + $(GNOME_CFLAGS) \ | ||
17 | + $(mon_obj) $(gnome_obj) $(GNOME_LIBS) | ||
18 | |||
19 | |||
20 | ## Dist targets | ||