Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/cross/xtensa-esp32-elf-gcc xtensa-esp32-elf-gcc: fix C...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/de3208f861a4
branches:  trunk
changeset: 435910:de3208f861a4
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Mon Jul 20 02:14:10 2020 +0000

description:
xtensa-esp32-elf-gcc: fix C++ relocation issue

Build C++ support libraries with -mlongcalls.
Avoids "call8: call target out of range: malloc" error when linking some
esp-idf projects that use C++.

diffstat:

 cross/xtensa-esp32-elf-gcc/Makefile |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6f7b3de118df -r de3208f861a4 cross/xtensa-esp32-elf-gcc/Makefile
--- a/cross/xtensa-esp32-elf-gcc/Makefile       Sun Jul 19 16:01:39 2020 +0000
+++ b/cross/xtensa-esp32-elf-gcc/Makefile       Mon Jul 20 02:14:10 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2020/07/11 09:05:13 tnn Exp $
+# $NetBSD: Makefile,v 1.6 2020/07/20 02:14:10 tnn Exp $
 
 # We could use the upstream GCC distfile, but Espressif has important vendor
 # patches in their branch and it seems not worth the maintenance overhead to
@@ -9,7 +9,7 @@
 #EXTRACT_SUFX=         .tar.xz
 
 DISTNAME=              espressif-gcc-8.2.0
-PKGREVISION=           2
+PKGREVISION=           3
 PKGNAME=               ${DISTNAME:C/.*gcc/xtensa-esp32-elf-gcc/}
 CATEGORIES=            cross
 MASTER_SITES=          ${MASTER_SITE_GITHUB:=espressif/}
@@ -58,7 +58,7 @@
 CONFIGURE_ARGS+=       --disable-libstdcxx-pch
 CONFIGURE_ARGS+=       --disable-libstdcxx-verbose
 CONFIGURE_ARGS+=       --disable-__cxa_atexit
-CONFIGURE_ARGS+=       --enable-cxx-flags="-fno-rtti -ffunction-sections"
+CONFIGURE_ARGS+=       --enable-cxx-flags="-fno-rtti -ffunction-sections -mlongcalls"
 CONFIGURE_ARGS+=       --enable-target-optspace
 CONFIGURE_ARGS+=       --disable-libquadmath
 CONFIGURE_ARGS+=       --disable-libssp



Home | Main Index | Thread Index | Old Index