diff options
| author | Dongxiao Xu <dongxiao.xu@intel.com> | 2010-09-16 13:51:09 +0800 |
|---|---|---|
| committer | Saul Wold <Saul.Wold@intel.com> | 2010-09-17 11:41:58 -0700 |
| commit | 0ff070bbf1575be62691eea7b9fb3ca74f2ab373 (patch) | |
| tree | 225ec6b34647a07998183aff261c1afde493740c /meta/recipes-core | |
| parent | 8e9caafd0b94016568dfccf969a0e326f3645fa6 (diff) | |
| download | poky-0ff070bbf1575be62691eea7b9fb3ca74f2ab373.tar.gz | |
gcc: upgrade gcc for powerpc to version 4.5.0
Fix one parameter order issue for base_contains function,
which impacts glibc build under new gcc.
Add new judge code to determine whether <altivec.h> is needed.
This fixes the mpeg2dec build failure under new gcc.
Use O2 as the optimization flag to tinylogin as it will meet
segfault if compiled by gcc-4.5.0 when enable both frename-registers
and Os options. Use O2 instead.
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'meta/recipes-core')
| -rw-r--r-- | meta/recipes-core/tinylogin/tinylogin-1.4/use_O2_option.patch | 19 | ||||
| -rw-r--r-- | meta/recipes-core/tinylogin/tinylogin_1.4.bb | 5 |
2 files changed, 22 insertions, 2 deletions
diff --git a/meta/recipes-core/tinylogin/tinylogin-1.4/use_O2_option.patch b/meta/recipes-core/tinylogin/tinylogin-1.4/use_O2_option.patch new file mode 100644 index 0000000000..dc5bc3f123 --- /dev/null +++ b/meta/recipes-core/tinylogin/tinylogin-1.4/use_O2_option.patch | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | tinylogin will meet segment fault if compiled by gcc-4.5.0 when enable both | ||
| 2 | frename-registers and Os options. Use O2 instead. | ||
| 3 | |||
| 4 | Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> | ||
| 5 | |||
| 6 | diff -ruN tinylogin-1.4-orig/Makefile tinylogin-1.4/Makefile | ||
| 7 | --- tinylogin-1.4-orig/Makefile 2010-09-16 13:02:06.302192295 +0800 | ||
| 8 | +++ tinylogin-1.4/Makefile 2010-09-16 13:02:34.634167846 +0800 | ||
| 9 | @@ -97,9 +97,7 @@ | ||
| 10 | #-------------------------------------------------------- | ||
| 11 | |||
| 12 | |||
| 13 | -# use '-Os' optimization if available, else use -O2 | ||
| 14 | -OPTIMIZATION = $(shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \ | ||
| 15 | - then echo "-Os"; else echo "-O2" ; fi) | ||
| 16 | +OPTIMIZATION = -O2 | ||
| 17 | |||
| 18 | WARNINGS = -Wall | ||
| 19 | |||
diff --git a/meta/recipes-core/tinylogin/tinylogin_1.4.bb b/meta/recipes-core/tinylogin/tinylogin_1.4.bb index ad254bff6a..3daeac004a 100644 --- a/meta/recipes-core/tinylogin/tinylogin_1.4.bb +++ b/meta/recipes-core/tinylogin/tinylogin_1.4.bb | |||
| @@ -5,13 +5,14 @@ changing passwords, and otherwise maintaining users \ | |||
| 5 | and groups on an embedded system." | 5 | and groups on an embedded system." |
| 6 | HOMEPAGE = "http://tinylogin.busybox.net/" | 6 | HOMEPAGE = "http://tinylogin.busybox.net/" |
| 7 | LICENSE = "GPL" | 7 | LICENSE = "GPL" |
| 8 | PR = "r4" | 8 | PR = "r5" |
| 9 | 9 | ||
| 10 | SRC_URI = "http://tinylogin.busybox.net/downloads/tinylogin-${PV}.tar.bz2 \ | 10 | SRC_URI = "http://tinylogin.busybox.net/downloads/tinylogin-${PV}.tar.bz2 \ |
| 11 | file://cvs-20040608.patch;patch=1;pnum=1 \ | 11 | file://cvs-20040608.patch;patch=1;pnum=1 \ |
| 12 | file://add-system.patch;patch=1;pnum=1 \ | 12 | file://add-system.patch;patch=1;pnum=1 \ |
| 13 | file://adduser-empty_pwd.patch;patch=1 \ | 13 | file://adduser-empty_pwd.patch;patch=1 \ |
| 14 | file://remove-index.patch;patch=1" | 14 | file://remove-index.patch;patch=1 \ |
| 15 | file://use_O2_option.patch" | ||
| 15 | 16 | ||
| 16 | EXTRA_OEMAKE = "" | 17 | EXTRA_OEMAKE = "" |
| 17 | 18 | ||
