aboutsummaryrefslogtreecommitdiff
path: root/package/sysklogd/sysklogd.mk
diff options
context:
space:
mode:
authorGravatar Romain Naour <romain.naour@gmail.com>2016-02-14 11:55:13 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-14 21:51:19 +0100
commit8e3a5c13546451c0c6ceb8bc64e4397ceed14aca (patch)
treef0bc72c754206e69a722d2088ea0330be95cfc2e /package/sysklogd/sysklogd.mk
parent60d71a9cbe3b209e501a339d45860abc789a42d1 (diff)
downloadbuildroot-8e3a5c13546451c0c6ceb8bc64e4397ceed14aca.tar.gz
buildroot-8e3a5c13546451c0c6ceb8bc64e4397ceed14aca.tar.bz2
package/syslogd: workaround a compiler bug with CS powerpc 2012.03
The O3 optimization triggers a compiler bug with this toolchain, change it with 02. Fixes: http://autobuild.buildroot.net/results/2fb/2fb94ecfdc32761a09da35e6fcbdd512847ec911 Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/sysklogd/sysklogd.mk')
-rw-r--r--package/sysklogd/sysklogd.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/sysklogd/sysklogd.mk b/package/sysklogd/sysklogd.mk
index de2edf409e..9e315bcdf3 100644
--- a/package/sysklogd/sysklogd.mk
+++ b/package/sysklogd/sysklogd.mk
@@ -14,6 +14,14 @@ ifeq ($(BR2_PACKAGE_BUSYBOX),y)
SYSKLOGD_DEPENDENCIES = busybox
endif
+# CS PowerPC 2012.03 triggers compiler bug.
+ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC_E500V2),y)
+define SYSKLOGD_WORKAROUND_COMPILER_BUG
+ $(SED) 's/-O3/-O2/' $(@D)/Makefile
+endef
+SYSKLOGD_POST_PATCH_HOOKS = SYSKLOGD_WORKAROUND_COMPILER_BUG
+endif
+
define SYSKLOGD_BUILD_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
endef