diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-11-21 19:32:18 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-11-21 21:54:51 +0100 |
commit | e5a51555f81d3e0b0261efb9db34cc9c8c9d2463 (patch) | |
tree | 9e1dca19670f0e232e0e9d9567191f332afe5dcf | |
parent | a227cf11f4bbc4149d3f13e3f5aee59c34b9c49a (diff) | |
download | buildroot-e5a51555f81d3e0b0261efb9db34cc9c8c9d2463.tar.gz buildroot-e5a51555f81d3e0b0261efb9db34cc9c8c9d2463.zip |
ptpd2: fix bfin compile by avoiding gcc bug
Fixes:
http://autobuild.buildroot.net/results/cb967c8af006caa9272e800968f794ca018a7a27
http://autobuild.buildroot.net/results/9a046dc5ef390e562b89338f0afeaef14b945458
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
[Thomas: also pass TARGET_CFLAGS.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/ptpd2/ptpd2.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/ptpd2/ptpd2.mk b/package/ptpd2/ptpd2.mk index da6a10684b..d53b13534c 100644 --- a/package/ptpd2/ptpd2.mk +++ b/package/ptpd2/ptpd2.mk @@ -24,6 +24,12 @@ else PTPD2_CONF_OPTS += --disable-snmp endif +# GCC bug with Os/O1/O2/O3 +# internal compiler error: in gen_add2_insn, at optabs.c:4454 +ifeq ($(BR2_bfin),y) +PTPD2_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O0" +endif + define PTPD2_INSTALL_INIT_SYSV $(INSTALL) -m 755 -D package/ptpd2/S65ptpd2 \ $(TARGET_DIR)/etc/init.d/S65ptpd2 |