mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
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>
This commit is contained in:
parent
60d71a9cbe
commit
8e3a5c1354
@ -14,6 +14,14 @@ ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
|||||||
SYSKLOGD_DEPENDENCIES = busybox
|
SYSKLOGD_DEPENDENCIES = busybox
|
||||||
endif
|
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
|
define SYSKLOGD_BUILD_CMDS
|
||||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
||||||
endef
|
endef
|
||||||
|
Loading…
x
Reference in New Issue
Block a user