From b7845b638818f32401070f00a61d3b42595ab223 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 11 Mar 2013 23:55:55 +0000 Subject: Add comments about ARM configure -fno-unwind-tables handling. --- ports/sysdeps/arm/preconfigure | 5 +++++ ports/sysdeps/arm/preconfigure.in | 5 +++++ ports/sysdeps/unix/sysv/linux/arm/configure | 1 + ports/sysdeps/unix/sysv/linux/arm/configure.in | 1 + 4 files changed, 12 insertions(+) (limited to 'ports/sysdeps') diff --git a/ports/sysdeps/arm/preconfigure b/ports/sysdeps/arm/preconfigure index 0042aaf240..7ba17492ee 100644 --- a/ports/sysdeps/arm/preconfigure +++ b/ports/sysdeps/arm/preconfigure @@ -5,6 +5,11 @@ case "$machine" in arm*) case $config_os in linux-gnueabi*) + # If the compiler enables unwind tables by default, this causes + # problems with undefined symbols in -nostdlib link tests. To + # avoid this, add -fno-unwind-tables here and remove it in + # sysdeps/unix/sysv/linux/arm/configure.in after those tests have + # been run. if "${CFLAGS+set}" != "set" ; then CFLAGS="-g -O2" fi diff --git a/ports/sysdeps/arm/preconfigure.in b/ports/sysdeps/arm/preconfigure.in index f3272f11cd..99f21282fa 100644 --- a/ports/sysdeps/arm/preconfigure.in +++ b/ports/sysdeps/arm/preconfigure.in @@ -5,6 +5,11 @@ case "$machine" in arm*) case $config_os in linux-gnueabi*) + # If the compiler enables unwind tables by default, this causes + # problems with undefined symbols in -nostdlib link tests. To + # avoid this, add -fno-unwind-tables here and remove it in + # sysdeps/unix/sysv/linux/arm/configure.in after those tests have + # been run. if [ "${CFLAGS+set}" != "set" ]; then CFLAGS="-g -O2" fi diff --git a/ports/sysdeps/unix/sysv/linux/arm/configure b/ports/sysdeps/unix/sysv/linux/arm/configure index cb94cc5eb4..f66b158289 100644 --- a/ports/sysdeps/unix/sysv/linux/arm/configure +++ b/ports/sysdeps/unix/sysv/linux/arm/configure @@ -2,4 +2,5 @@ # Local configure fragment for sysdeps/unix/sysv/linux/arm. libc_cv_gcc_unwind_find_fde=no +# Remove -fno-unwind-tables that was added in sysdeps/arm/preconfigure.in. CFLAGS=${CFLAGS% -fno-unwind-tables} diff --git a/ports/sysdeps/unix/sysv/linux/arm/configure.in b/ports/sysdeps/unix/sysv/linux/arm/configure.in index 3e67dee425..8fffe94051 100644 --- a/ports/sysdeps/unix/sysv/linux/arm/configure.in +++ b/ports/sysdeps/unix/sysv/linux/arm/configure.in @@ -2,4 +2,5 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. # Local configure fragment for sysdeps/unix/sysv/linux/arm. libc_cv_gcc_unwind_find_fde=no +# Remove -fno-unwind-tables that was added in sysdeps/arm/preconfigure.in. CFLAGS=${CFLAGS% -fno-unwind-tables} -- cgit 1.4.1